Forums > Jitter

preload images

February 8, 2008 | 2:12 pm

Hi,

I’m working on a system allowing to preload / autoload a bunch of image files in a [jit.matrixset].

First I tryed the "importmovie" message which works fine manually, file after file.
But since I’d like to automate the loading for several files, this message seems incorrect.

So I found a solution with a counter and a [jit.matrix]
Sometimes it works, sometimes not, and I’d like another solution, but I’m not sure this (autoload system) is the way to get jit.matrixset running.

Does someone ever encounter this problem ?

max v2;
#N vpatcher 455 85 1248 768;
#P origin 2 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 495 248 105 196617 #files;
#P newex 460 201 29 196617 t 0 i;
#P message 444 548 33 196617 set 0;
#P newex 330 217 44 196617 del 300;
#P window linecount 2;
#P newex 330 342 87 196617 jit.matrix 4 char 640 480;
#P toggle 396 525 15 0;
#P window linecount 0;
#P message 191 565 147 196617;
#P window linecount 1;
#P newex 191 544 62 196617 prepend set;
#P newex 460 180 74 196617 route populate;
#P message 37 293 102 196617 exportmovie monset;
#P newex 330 64 124 196617 b;
#P number 396 596 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 210 195 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter;
#X flags 0 0;
#P newobj 396 574 77 196617 counter;
#P newex 396 544 32 196617 sel 1;
#P newex 352 499 54 196617 unpack s i;
#P newex 352 474 94 196617 route importmovie;
#P message 474 277 80 196617 matrixcount $1;
#P comment 54 197 63 196617 recall index;
#P comment 244 196 73 196617 store at index;
#P message 18 220 84 196617 outputmatrix $1;
#P number 18 197 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 20 74 420 304;
#P window setfont "Sans Serif" 14.;
#P newex 50 56 117 196622 opendialog fold;
#P message 171 84 116 196622 autopopulate 1;
#P newex 50 82 114 196622 prepend prefix;
#P inlet 50 30 15 0;
#P outlet 50 116 15 0;
#P connect 1 0 4 0;
#P connect 4 0 2 0;
#P fasten 3 0 0 0 176 111 55 111;
#P connect 2 0 0 0;
#P fasten 1 0 3 0 55 49 176 49;
#P pop;
#P newobj 330 92 92 196617 p charger_dossier;
#P button 330 45 15 0;
#P comment 348 47 89 196617 folder;
#P user ubumenu 330 128 100 196617 0 1 1 0;
#X prefix_set 0 1 kyred:/Users/derrickgiscloux/Pictures/Derrick/Celestins/ 0;
#P message 210 215 49 196617 index $1;
#P user jit.pwindow 209 440 82 62 0 1 0 0 1 0;
#P newex 210 390 158 196617 jit.matrixset 10 4 char 640 480;
#P number 460 246 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 348 245 98 196617 pack importmovie s;
#P newex 330 147 46 196617 t b b i;
#P connect 10 0 11 0;
#P fasten 16 0 24 0 357 536 196 536;
#P connect 24 0 25 0;
#P fasten 0 2 19 0 371 179 215 179;
#P connect 19 0 5 0;
#P fasten 27 0 3 0 335 377 215 377;
#P connect 5 0 3 0;
#P connect 22 0 3 0;
#P fasten 14 0 3 0 479 386 215 386;
#P fasten 11 0 3 0 23 376 215 376;
#P connect 3 0 4 0;
#P connect 8 0 21 0;
#P connect 21 0 9 0;
#P connect 9 0 6 0;
#P fasten 30 0 6 0 465 230 687 230 687 123 335 123;
#P fasten 20 0 6 0 401 640 710 640 710 115 335 115;
#P connect 6 0 0 0;
#P connect 0 0 28 0;
#P connect 28 0 27 0;
#P fasten 1 0 27 0 353 281 335 281;
#P connect 0 1 1 0;
#P connect 27 1 15 0;
#P connect 15 0 16 0;
#P connect 16 1 26 0;
#P connect 26 0 17 0;
#P connect 17 0 18 0;
#P fasten 29 0 18 0 449 568 401 568;
#P connect 18 0 20 0;
#P fasten 6 1 1 1 380 185 441 185;
#P connect 21 1 29 0;
#P connect 6 2 23 0;
#P connect 23 0 30 0;
#P connect 30 1 2 0;
#P connect 2 0 18 4;
#P connect 2 0 14 0;
#P pop;


February 8, 2008 | 5:14 pm

This patch resolves (I hope) the prior one.
I think I wasn’t clear with order of events.

max v2;
#N vpatcher 356 88 1149 771;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 229 38 33 196617 clear;
#P newex 398 372 34 196617 defer;
#P newex 332 254 30 196617 t b s;
#P newex 462 299 29 196617 t 0 i;
#P user jit.pwindow 231 362 82 62 0 1 0 0 1 0;
#P message 446 325 33 196617 set 0;
#P newex 332 172 44 196617 del 100;
#P window linecount 2;
#P newex 332 222 87 196617 jit.matrix 4 char 640 480;
#P window linecount 1;
#P newex 462 151 74 196617 route populate;
#P newex 332 82 124 196617 b;
#N counter;
#X flags 0 0;
#P newobj 398 351 77 196617 counter;
#P message 471 234 80 196617 matrixcount $1;
#P comment 229 81 63 196617 recall index;
#P message 192 104 84 196617 outputmatrix $1;
#P number 192 78 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 20 74 420 304;
#P window setfont "Sans Serif" 14.;
#P newex 50 56 117 196622 opendialog fold;
#P message 171 84 116 196622 autopopulate 1;
#P newex 50 82 114 196622 prepend prefix;
#P inlet 50 30 15 0;
#P outlet 50 116 15 0;
#P connect 1 0 4 0;
#P connect 4 0 2 0;
#P connect 2 0 0 0;
#P fasten 3 0 0 0 176 111 55 111;
#P fasten 1 0 3 0 55 49 176 49;
#P pop;
#P newobj 332 102 92 196617 p charger_dossier;
#P button 332 63 15 0;
#P comment 347 64 89 196617 folder;
#P user ubumenu 332 127 100 196617 0 1 1 0;
#X prefix_set 0 1 kyred:/Users/derrickgiscloux/Pictures/diverses/nature/ 0;
#P message 212 215 49 196617 index $1;
#P newex 212 289 152 196617 jit.matrixset 6 4 char 640 480;
#N vpatcher 10 59 610 459;
#P outlet 91 114 15 0;
#P inlet 97 82 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 462 188 13 196617 p;
#P newex 350 200 98 196617 pack importmovie s;
#P newex 332 147 51 196617 t b bang i;
#P connect 9 0 10 0;
#P fasten 0 2 4 0 377 168 217 168;
#P connect 4 0 3 0;
#P fasten 12 0 3 0 476 283 217 283;
#P fasten 10 0 3 0 197 274 217 274;
#P fasten 21 1 3 0 357 280 217 280;
#P connect 3 0 19 0;
#P connect 7 0 14 0;
#P connect 14 0 8 0;
#P connect 23 0 5 0;
#P fasten 22 0 5 0 403 397 554 397 554 120 337 120;
#P connect 8 0 5 0;
#P fasten 20 0 5 0 467 322 552 322 552 123 337 123;
#P connect 5 0 0 0;
#P connect 0 0 17 0;
#P connect 17 0 16 0;
#P fasten 1 0 16 0 355 218 337 218;
#P connect 16 0 21 0;
#P connect 0 1 1 0;
#P fasten 18 0 13 0 451 345 403 345;
#P fasten 21 0 13 0 337 275 403 275;
#P connect 13 0 22 0;
#P fasten 5 1 1 1 382 185 443 185;
#P connect 14 1 18 0;
#P connect 5 2 15 0;
#P connect 15 0 2 0;
#P connect 2 0 20 0;
#P fasten 20 1 13 4 486 345 467 345;
#P connect 2 0 12 0;
#P pop;


March 19, 2009 | 9:46 am

hello,

Is it possible to make a picture but from a different time than the beginning? For example, i’d like to have a screen picture from all videos i load at the time of 2 seconds.

Thanks

Luis Marques


Viewing 3 posts - 1 through 3 (of 3 total)