Forums > MaxMSP

Having trouble with write filepath

November 9, 2006 | 11:29 pm

Hello. I am having trouble getting jit.qt.grab to write to a particular folder. I have set up a robot to create the unique file name, but i can’t seem to concatenate the correct string to save the file.

I know that this is the msp forum, but the question seems to be a general max function.

any help?

max v2;
#N vpatcher 0 44 1106 693;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 245 57 151 196617 find the searchpath;
#P message 67 154 317 196617 oliver:/Users/admin/Desktop/_InteractiveDesign/drummachince/;
#P button 67 83 15 0;
#P newex 67 131 62 196617 prepend set;
#P newex 67 106 78 196617 filepath default;
#B color 5;
#P comment 309 230 219 196617 this saves the file to the folder entitled one;
#P newex 349 446 60 196617 loadmess 2;
#P newex 159 484 48 196617 loadbang;
#P number 330 469 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user incdec 330 447 15 15 0 0;
#P newex 330 489 32 196617 * 15;
#P message 526 532 33 196617 close;
#P message 493 532 30 196617 open;
#P flonum 472 512 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 438 512 15 0;
#P newex 438 532 44 196617 metro 2;
#P newex 83 580 95 196617 jit.qt.grab 320 240;
#B color 5;
#P number 330 512 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 331 532 82 196617 write_length $1;
#P toggle 245 512 15 0;
#P message 245 532 75 196617 write_audio $1;
#P toggle 159 512 15 0;
#P message 159 532 78 196617 write_video $1;
#P newex 580 346 62 196617 prepend set;
#P message 580 372 368 196617 write oliver:/Users/admin/Desktop/videos/two/58.mov 30. jpeg normal;
#P newex 580 305 160 196617 sprintf write %s 30. jpeg normal;
#P newex 580 252 258 196617 sprintf oliver:/Users/admin/Desktop/videos/two/%s;
#P message 763 305 244 196617 oliver:/Users/admin/Desktop/videos/two/58.mov;
#P newex 763 281 62 196617 prepend set;
#P button 531 124 15 0;
#P button 606 126 15 0;
#P message 606 47 57 196617 folder two;
#P message 531 47 55 196617 folder one;
#P message 546 146 14 196617 0;
#P message 565 146 14 196617 1;
#P user gswitch2 551 182 39 32 1 0;
#P newex 83 348 62 196617 prepend set;
#P message 83 374 368 196617 write oliver:/Users/admin/Desktop/videos/one/57.mov 30. jpeg normal;
#P newex 83 307 160 196617 sprintf write %s 30. jpeg normal;
#P newex 83 254 256 196617 sprintf oliver:/Users/admin/Desktop/videos/one/%s;
#P message 266 307 244 196617 oliver:/Users/admin/Desktop/videos/one/57.mov;
#P newex 266 283 62 196617 prepend set;
#P newex 438 152 62 196617 prepend set;
#P message 438 176 45 196617 58.mov;
#P button 438 74 15 0;
#P newex 438 126 79 196617 sprintf %s.mov;
#N counter 0 100;
#X flags 0 0;
#P newobj 438 103 73 196617 counter 0 100;
#P comment 820 230 219 196617 this saves the file to the folder entitled two;
#P user panel 56 69 341 114;
#X brgb 229 229 218;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 569 241 470 180;
#X brgb 108 137 95;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 57 241 470 180;
#X brgb 150 166 82;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 520 40 189 31;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P connect 49 0 47 0;
#P connect 47 0 48 0;
#P connect 48 0 50 0;
#P fasten 16 0 12 0 556 220 88 220;
#P connect 12 0 13 0;
#P fasten 13 0 15 0 88 335 88 335;
#P connect 15 0 14 0;
#P fasten 27 0 35 0 585 435 88 435;
#P connect 14 0 35 0;
#P fasten 40 0 35 0 531 564 88 564;
#P fasten 39 0 35 0 498 564 88 564;
#P fasten 36 0 35 0 443 564 88 564;
#P fasten 33 0 35 0 336 563 88 563;
#P fasten 31 0 35 0 250 563 88 563;
#P fasten 29 0 35 0 164 563 88 563;
#P connect 44 0 30 0;
#P connect 30 0 29 0;
#P fasten 44 0 32 0 164 506 250 506;
#P connect 32 0 31 0;
#P fasten 12 0 10 0 88 277 271 277;
#P connect 10 0 11 0;
#P connect 42 0 43 0;
#P connect 45 0 43 0;
#P connect 43 0 41 0;
#P connect 41 0 34 0;
#P connect 34 0 33 0;
#P fasten 20 0 7 0 611 69 443 69;
#P fasten 19 0 7 0 536 65 443 65;
#P connect 7 0 5 0;
#P connect 5 0 6 0;
#P fasten 6 0 9 0 443 151 443 151;
#P connect 9 0 8 0;
#P connect 37 0 36 0;
#P connect 38 0 36 1;
#P connect 19 0 22 0;
#P fasten 22 0 18 0 536 142 551 142;
#P fasten 17 0 16 0 570 171 556 171;
#P fasten 18 0 16 0 551 171 556 171;
#P fasten 21 0 17 0 611 143 570 143;
#P fasten 6 0 16 1 443 122 585 122;
#P fasten 16 1 25 0 585 228 585 228;
#P connect 25 0 26 0;
#P fasten 26 0 28 0 585 333 585 333;
#P connect 28 0 27 0;
#P connect 20 0 21 0;
#P fasten 25 0 23 0 585 275 768 275;
#P connect 23 0 24 0;
#P pop;


Viewing 1 post (of 1 total)