Forums > Jitter

loading a list of movies in a Sequence into poly~movie

October 4, 2007 | 6:25 am

hi list

im loading files from a folder inside the patch folder

eg patch folder C:/_videolooper/

folder inside patch folder videomat/

full path C:/_videolooper/videomat/

then load file names to jit.cellblock and at the same time load into a poly~ movie object that im working on.

my problem is loading files in into poly~ with the same seg that are loaded into jit.cellblock
any help would be appreciated

thank for your time
dan.r

max v2;
#N vpatcher 467 49 1332 965;
#P origin -799 -98;
#P window setfont "Sans Serif" 9.;
#P comment 426 718 100 9109513 this way work but not acurate , it gets messed up;
#P window linecount 1;
#P newex 270 849 26 9109513 print;
#P newex 269 709 27 9109513 t b l;
#P comment 562 176 93 9109513 eg:C:/_videolooper/;
#P window linecount 2;
#P comment 532 287 153 9109513 folder name inside C:/_videolooper/ with material;
#P window linecount 1;
#P message 573 740 239 9109513 target 5 , read C:/_videolooper/videomat/anyname.mov;
#B color 7;
#P window linecount 2;
#P comment 545 448 153 9109513 3 sends movie names to jit.cellblock;
#P window linecount 0;
#P message 270 783 15 9109513;
#P window linecount 1;
#P message 286 739 104 9109513 set target $1 \, read $3;
#P newex 105 382 66 9109513 r frombrowser;
#P newex 145 325 68 9109513 s frombrowser;
#P newex 226 20 54 9109513 r tobrowser;
#P newex 559 666 56 9109513 s tobrowser;
#P number 167 563 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 139 496 38 9109513 unpack;
#P newex 269 683 214 9109513 sprintf %ld read C:/_videolooper/videomat/%s%s;
#P newex 287 426 45 9109513 loadbang;
#P message 375 476 32 9109513 types;
#P newex 202 488 60 9109513 prepend set;
#P newex 139 462 73 9109513 zl slice 2;
#P window linecount 0;
#P message 202 517 15 9109513;
#P window linecount 1;
#P newex 447 247 40 9109513 t b s b;
#P newex 491 219 51 9109513 tosymbol;
#P message 440 176 29 9109513 path;
#N thispatcher;
#Q end;
#P newobj 440 195 61 9109513 thispatcher;
#P message 477 287 47 9109513 videomat;
#P newex 426 349 51 9109513 tosymbol;
#P newex 426 318 61 9109513 sprintf %s%s;
#P newex 426 528 67 9109513 route append;
#P message 179 14 40 9109513 clear all;
#P newex 426 493 32 9109513 folder;
#P newex 426 449 55 9109513 t l b 0 clear;
#P newex 426 632 65 9109513 prepend set 0;
#P newex 523 583 45 9109513 + 1;
#P newex 426 608 51 9109513 pack i s;
#P newex 426 584 87 9109513 i;
#P newex 426 558 51 9109513 t b s;
#P user jit.cellblock 226 56 397 312 3 9 1 16 534 15 0 1 1 0 1 0 1 1 1 17 17 17 170 170 170 99 99 99 0 0 0 191 191 191 0 0 0 255 255 0 1 0 1 0 4 0 0 0;
#P comment 484 175 75 9109513 patch path;
#P window linecount 7;
#P comment 112 683 100 9109513 i need help in this part here…is there a better way of doing it? what im after is as files LOAD in jit.cellblock to load into poly at same time in the same seg;
#P user panel 216 670 331 145;
#X brgb 241 139 139;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P window linecount 3;
#P comment 625 696 100 9109513 this is the massage that i want to send to poly;
#P fasten 32 0 22 0 110 425 144 425;
#P connect 22 0 27 0;
#P fasten 4 0 31 0 231 319 150 319;
#P connect 27 1 28 0;
#P connect 22 1 23 0;
#P connect 23 0 21 0;
#P connect 30 0 4 0;
#P connect 12 0 4 0;
#P fasten 6 0 26 0 431 605 274 605;
#P connect 26 0 39 0;
#P connect 39 0 34 0;
#P connect 33 0 34 0;
#P connect 34 0 40 0;
#P connect 39 1 33 0;
#P fasten 5 1 26 1 472 581 376 581;
#P fasten 25 0 24 0 292 463 380 463;
#P fasten 20 1 14 0 467 282 431 282;
#P connect 14 0 15 0;
#P connect 15 0 10 0;
#P connect 24 0 11 0;
#P connect 10 0 11 0;
#P connect 11 0 13 0;
#P fasten 10 1 13 0 446 489 464 489 464 521 431 521;
#P connect 13 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 9 0;
#P connect 18 0 17 0;
#P fasten 19 0 20 0 496 244 452 244;
#P connect 5 1 7 1;
#P fasten 20 2 16 0 482 278 482 278;
#P fasten 20 0 16 0 452 281 482 281;
#P connect 16 0 14 1;
#P connect 17 1 19 0;
#P fasten 10 2 6 1 461 484 508 484;
#P connect 8 0 6 1;
#P connect 6 0 8 0;
#P fasten 9 0 29 0 431 662 564 662;
#P fasten 10 3 29 0 476 475 564 475;
#P pop;


October 8, 2007 | 5:32 pm

maybe some of this will help

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 986 322 97 196617 ubumenu is nice , too;
#P newex 882 347 60 196617 prepend set;
#P window linecount 0;
#P message 882 376 136 196617;
#P window linecount 1;
#P newex 882 291 76 196617 prepend prefix;
#P user ubumenu 882 319 100 196617 0 1 1 0;
#X prefix_set 0 1 Cosola:/Users/yowstar/Video/PhotoLayers-japan/ 0;
#P newex 239 634 60 196617 prepend set;
#P window linecount 0;
#P message 239 663 136 196617;
#P window linecount 1;
#P newex 239 607 51 196617 tosymbol;
#P newex 293 560 51 196617 tosymbol;
#P newex 239 586 78 196617 sprintf %s/%s;
#P newex 239 536 72 196617 v mediafolder;
#P newex 239 560 51 196617 tosymbol;
#P newex 239 509 27 196617 t b l;
#P newex 457 270 72 196617 v mediafolder;
#P newex 136 391 85 196617 r frombrowser;
#P number 198 529 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 170 505 38 196617 unpack;
#P newex 170 471 73 196617 zl slice 2;
#P window linecount 2;
#P comment 547 83 267 196617 using this method means you can put your media folder in the Max folder , or in the folder of your standalone app.;
#P window linecount 1;
#P newex 500 192 51 196617 tosymbol;
#P newex 500 241 64 196617 print MEDIA;
#P message 528 167 47 196617 videomat;
#P newex 500 216 80 196617 sprintf %s%s;
#P window setfont Arial 9.;
#P newex 500 87 47 131137545 loadbang;
#P newex 500 140 46 131137545 r mypath;
#P window linecount 2;
#P message 500 112 116 131137545 ; max sendapppath mypath;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 500 165 27 196617 t l b;
#P newex 706 533 37 196617 zl rev;
#P newex 706 555 71 196617 prepend set 0;
#P newex 706 485 51 196617 strippath;
#P newex 761 485 27 196617 – 1;
#P newex 706 511 65 196617 pack name 0;
#P newex 609 514 70 196617 print TOPOLY;
#P newex 609 378 51 196617 tosymbol;
#P newex 609 479 68 196617 prepend read;
#P newex 625 455 76 196617 prepend target;
#N counter;
#X flags 0 0;
#P newobj 625 430 66 196617 counter;
#P comment 719 177 97 196617
#P user dropfile 610 140 716 238 1;
#P window linecount 2;
#P comment 613 176 100 196617 drag and drop a file here…;
#P window linecount 1;
#P newex 609 241 51 196617 tosymbol;
#P newex 790 583 70 196617 s tobrowser;
#P newex 544 261 45 196617 loadbang;
#P message 557 293 32 196617 types;
#P newex 609 349 67 196617 route append;
#P newex 609 314 32 196617 folder;
#P newex 609 270 63 196617 t l b 1 clear;
#P newex 609 409 27 196617 t l b;
#P newex 299 866 40 196617 print;
#P newex 174 342 82 196617 s frombrowser;
#P newex 255 37 73 196617 r tobrowser;
#P message 208 31 54 196617 clear all;
#P user jit.cellblock 255 73 426 329 3 9 1 16 534 15 0 1 1 0 1 0 1 1 1 17 17 17 170 170 170 99 99 99 0 0 0 191 191 191 0 0 0 255 255 0 1 0 1 0 4 0 0 0;
#P user panel 446 70 419 557;
#X brgb 201 180 180;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 39 0 36 0 141 434 175 434;
#P connect 36 0 37 0;
#P fasten 1 0 4 0 260 336 179 336;
#P connect 37 1 38 0;
#P connect 36 1 41 0;
#P connect 41 0 43 0;
#P connect 43 0 42 0;
#P connect 42 0 44 0;
#P connect 44 0 46 0;
#P connect 46 0 48 0;
#P connect 48 0 47 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P connect 41 1 45 0;
#P connect 45 0 44 1;
#P connect 31 0 40 0;
#P connect 30 0 28 0;
#P connect 29 0 27 0;
#P connect 27 0 34 0;
#P connect 34 0 31 0;
#P connect 31 0 33 0;
#P connect 27 1 32 0;
#P fasten 11 0 10 0 549 284 562 284;
#P connect 32 0 31 1;
#P connect 31 0 13 0;
#P connect 15 0 13 0;
#P connect 13 0 7 0;
#P connect 7 0 8 0;
#P fasten 10 0 8 0 562 311 614 311;
#P fasten 7 1 9 0 629 310 644 310 644 342 614 342;
#P connect 8 0 9 0;
#P connect 9 0 20 0;
#P connect 20 0 6 0;
#P connect 6 0 19 0;
#P connect 19 0 21 0;
#P connect 18 0 21 0;
#P connect 6 1 17 0;
#P connect 17 0 18 0;
#P fasten 7 2 17 2 648 425 658 425;
#P fasten 6 0 24 0 614 451 711 451;
#P connect 24 0 22 0;
#P connect 22 0 26 0;
#P connect 26 0 25 0;
#P fasten 17 0 23 0 630 451 766 451;
#P fasten 23 0 22 1 766 507 766 507;
#P connect 25 0 12 0;
#P fasten 7 3 12 0 658 296 795 296;
#P fasten 13 0 50 0 614 261 887 261;
#P connect 50 0 49 0;
#P connect 49 1 52 0;
#P connect 52 0 51 0;
#P window clipboard copycount 54;


October 9, 2007 | 9:42 am

thanks pnyboer
i ll have a look at your patch
thanks again
dan


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