Forums > Jitter

scissors and glue

October 7, 2008 | 2:55 pm

I’m trying to create a patch in which I have an image which I cut up using the scissors tool and when I hit a switch pieces of the image switch to other preloaded pics, some of which I have also cut up using the scissors tool. But When I try to glue the image with the other images inside it, it simply displays black where the other image should be, heres my patch:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 701 145 55 196617 r metsend;
#P newex 80 54 55 196617 s metsend;
#N vpatcher 20 74 737 554;
#P origin 70 0;
#P user jit.pwindow 324 320 33 40 0 1 0 0 1 0;
#P user jit.pwindow 291 319 33 40 0 1 0 0 1 0;
#P user jit.pwindow 324 278 33 40 0 1 0 0 1 0;
#P user jit.pwindow 291 277 33 40 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P newex 347 39 48 196617 loadbang;
#P message 394 73 14 196617 2;
#P message 336 74 14 196617 2;
#P number 394 117 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 336 107 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 397 138 59 196617 columns $1;
#P message 343 138 45 196617 rows $1;
#P message 272 138 58 196617 getcolumns;
#P message 210 138 45 196617 getrows;
#P button 51 130 15 0;
#P outlet 204 380 15 0;
#P outlet 165 376 15 0;
#P outlet 128 374 15 0;
#P outlet 91 375 15 0;
#P inlet 92 49 15 0;
#P message 224 104 27 196617 stop;
#P message 185 104 31 196617 start;
#P message 152 104 28 196617 read;
#P newex 92 131 103 196617 jit.qt.movie 320 240;
#P newex 92 176 161 196617 jit.scissors @rows 2 @columns 2;
#B color 5;
#P connect 5 0 10 0;
#P connect 0 0 6 0;
#P connect 5 0 1 0;
#P fasten 2 0 1 0 157 126 97 126;
#P fasten 3 0 1 0 190 126 97 126;
#P fasten 4 0 1 0 229 126 97 126;
#P fasten 14 0 0 0 402 163 97 163;
#P fasten 13 0 0 0 348 159 97 159;
#P fasten 12 0 0 0 277 165 97 165;
#P fasten 11 0 0 0 215 164 97 164;
#P connect 1 0 0 0;
#P connect 0 1 7 0;
#P connect 0 2 8 0;
#P fasten 0 3 9 0 210 191;
#P connect 0 0 20 0;
#P connect 0 2 22 0;
#P connect 0 1 21 0;
#P connect 0 3 23 0;
#P connect 19 0 17 0;
#P connect 17 0 15 0;
#P connect 15 0 13 0;
#P connect 19 0 18 0;
#P connect 18 0 16 0;
#P connect 16 0 14 0;
#P pop 1;
#P newobj 701 185 99 196617 p img2;
#N vpatcher 643 130 1514 611;
#P button 16 162 15 0;
#P user gswitch 254 225 41 32 1 0;
#P user gswitch 175 224 41 32 1 0;
#P user gswitch 113 224 41 32 1 0;
#P user gswitch 25 223 41 32 1 0;
#P inlet 417 49 15 0;
#P inlet 384 47 15 0;
#P inlet 339 45 15 0;
#P inlet 305 46 15 0;
#P inlet 255 47 15 0;
#P inlet 181 48 15 0;
#P inlet 113 51 15 0;
#P inlet 37 49 15 0;
#P outlet 227 373 18 0;
#P outlet 154 375 15 0;
#P outlet 82 369 15 0;
#P outlet 10 369 15 0;
#P fasten 12 0 0 0 30 363 15 363;
#P connect 16 0 12 0;
#P connect 4 0 12 1;
#P fasten 8 0 12 2 310 89 60 89;
#P fasten 13 0 1 0 118 362 87 362;
#P connect 16 0 13 0;
#P connect 5 0 13 1;
#P fasten 9 0 13 2 344 133 148 133;
#P fasten 14 0 2 0 180 366 159 366;
#P connect 16 0 14 0;
#P fasten 6 0 14 1 184 63;
#P fasten 10 0 14 2 389 183 210 183;
#P fasten 15 0 3 0 259 358 232 358;
#P connect 16 0 15 0;
#P connect 7 0 15 1;
#P fasten 11 0 15 2 416 215 289 215;
#P pop 1;
#P newobj 619 291 124 196617 p switcher;
#P toggle 249 51 14 0;
#P newex 207 55 29 196617 / 3 ,;
#P newex 187 31 39 196617 ctlin 1;
#P newex 250 76 42 196617 qmetro;
#P number 485 81 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 479 52 52 196617 / 7.9375;
#P newex 479 30 45 196617 ctlin 91;
#P message 595 521 68 196617 fullscreen $1;
#P toggle 579 520 15 0;
#P newex 622 496 44 196617 sel 102;
#P newex 622 450 40 196617 key;
#P newex 595 565 103 196617 jit.window satellites;
#P newex 61 474 469 196617 jit.glue @rows 6 @columns 6;
#B color 5;
#P button 385 21 15 0;
#P newex 390 78 43 196617 random;
#P newex 336 78 43 196617 random;
#P number 390 110 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 336 100 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 390 131 59 196617 columns $1;
#P message 336 131 45 196617 rows $1;
#P message 265 131 58 196617 getcolumns;
#P message 203 131 45 196617 getrows;
#P button 19 88 15 0;
#P message 157 88 27 196617 stop;
#P message 118 88 31 196617 start;
#P message 85 88 28 196617 read;
#P toggle 11 25 14 0;
#P newex 10 45 44 196617 metro 2;
#P newex 37 115 103 196617 jit.qt.movie 320 240;
#P newex 63 162 482 196617 jit.scissors @rows 6 @columns 6;
#B color 5;
#P connect 31 3 17 8;
#P fasten 31 3 30 7 793 278 736 278;
#P connect 31 2 17 7;
#P fasten 31 2 30 6 764 272 720 272;
#P connect 33 0 31 0;
#P connect 31 1 17 2;
#P fasten 31 1 30 5 735 262 704 262;
#P connect 31 0 17 1;
#P fasten 31 0 30 4 706 245 688 245;
#P fasten 0 8 30 3 172 187 672 187;
#P fasten 0 7 30 2 159 188 656 188;
#P fasten 0 2 30 1 94 194 640 194;
#P connect 19 0 20 0;
#P fasten 0 1 30 0 81 202 624 202;
#P connect 17 0 18 0;
#P connect 22 0 18 0;
#P connect 21 0 22 0;
#P fasten 20 0 21 0 627 516 584 516;
#P connect 0 35 17 35;
#P connect 0 34 17 34;
#P connect 0 33 17 33;
#P connect 24 0 25 0;
#P connect 23 0 24 0;
#P connect 0 32 17 32;
#P connect 0 31 17 31;
#P connect 0 30 17 30;
#P connect 0 29 17 29;
#P connect 0 28 17 28;
#P connect 25 0 14 1;
#P connect 25 0 15 1;
#P connect 0 27 17 27;
#P connect 0 26 17 26;
#P connect 13 0 11 0;
#P connect 15 0 13 0;
#P connect 16 0 14 0;
#P connect 16 0 15 0;
#P connect 0 25 17 25;
#P fasten 26 0 16 0 255 105 322 105 322 37;
#P fasten 0 24 17 24 379 474;
#P connect 0 23 17 23;
#P connect 0 22 17 22;
#P connect 12 0 10 0;
#P connect 14 0 12 0;
#P connect 0 21 17 21;
#P connect 0 20 17 20;
#P connect 0 19 17 19;
#P connect 0 18 17 18;
#P connect 0 17 17 17;
#P connect 28 0 26 1;
#P connect 0 16 17 16;
#P connect 0 15 17 15;
#P connect 29 0 26 0;
#P connect 0 14 17 14;
#P connect 0 13 17 13;
#P connect 0 12 17 12;
#P connect 27 0 28 0;
#P fasten 0 11 17 11 210 181;
#P connect 0 10 17 10;
#P connect 0 9 17 9;
#P connect 0 6 17 6;
#P connect 0 5 17 5;
#P connect 0 4 17 4;
#P connect 0 3 17 3;
#P connect 2 0 1 0;
#P fasten 2 0 32 0 15 69 71 69 71 43 85 43;
#P fasten 8 0 0 0 208 152 68 152;
#P fasten 9 0 0 0 270 152 68 152;
#P connect 1 0 0 0;
#P connect 0 0 17 0;
#P connect 10 0 17 0;
#P connect 11 0 17 0;
#P fasten 7 0 1 0 24 110 42 110;
#P fasten 4 0 1 0 90 110 42 110;
#P fasten 5 0 1 0 123 110 42 110;
#P fasten 6 0 1 0 162 110 42 110;
#P connect 3 0 2 0;
#P window clipboard copycount 34;



MIB
October 7, 2008 | 8:17 pm

my guess would be that your second scissors object hasn’t the same dimensions as your first. try setting the second one to 6 rows/columns as well.


October 10, 2008 | 4:01 pm

I tried changing the dimensions there, and it did’t change anything, Ny other suggestions?



MIB
October 10, 2008 | 4:31 pm

works fine here…

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 761 205 55 196617 r metsend;
#P newex 140 114 55 196617 s metsend;
#N vpatcher 767 66 1484 546;
#P origin 70 0;
#P user jit.pwindow 324 320 33 40 0 1 0 0 1 0;
#P user jit.pwindow 291 319 33 40 0 1 0 0 1 0;
#P user jit.pwindow 324 278 33 40 0 1 0 0 1 0;
#P user jit.pwindow 291 277 33 40 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P newex 347 39 48 196617 loadbang;
#P message 394 73 14 196617 2;
#P message 336 74 14 196617 2;
#P number 394 117 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 336 107 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 397 138 59 196617 columns $1;
#P message 343 138 45 196617 rows $1;
#P message 272 138 58 196617 getcolumns;
#P message 210 138 45 196617 getrows;
#P button 51 130 15 0;
#P outlet 204 380 15 0;
#P outlet 165 376 15 0;
#P outlet 128 374 15 0;
#P outlet 91 375 15 0;
#P inlet 92 49 15 0;
#P message 224 104 27 196617 stop;
#P message 185 104 31 196617 start;
#P message 153 83 76 196617 read bball.mov;
#P newex 92 131 103 196617 jit.qt.movie 320 240;
#P newex 92 176 482 196617 jit.scissors @rows 6 @columns 6;
#B color 5;
#P connect 5 0 10 0;
#P connect 0 0 6 0;
#P fasten 4 0 1 0 229 126 97 126;
#P fasten 3 0 1 0 190 126 97 126;
#P fasten 2 0 1 0 158 126 97 126;
#P connect 5 0 1 0;
#P fasten 14 0 0 0 402 163 97 163;
#P fasten 13 0 0 0 348 159 97 159;
#P fasten 12 0 0 0 277 165 97 165;
#P fasten 11 0 0 0 215 164 97 164;
#P connect 1 0 0 0;
#P connect 0 1 7 0;
#P connect 0 2 8 0;
#P fasten 0 3 9 0 136 286 209 286;
#P connect 0 0 20 0;
#P connect 0 2 22 0;
#P connect 0 1 21 0;
#P connect 0 3 23 0;
#P connect 19 0 17 0;
#P connect 17 0 15 0;
#P connect 15 0 13 0;
#P connect 19 0 18 0;
#P connect 18 0 16 0;
#P connect 16 0 14 0;
#P pop;
#P newobj 761 245 99 196617 p img2;
#N vpatcher 874 256 1745 737;
#P button 16 162 15 0;
#P user gswitch 254 225 41 32 1 0;
#P user gswitch 175 224 41 32 1 0;
#P user gswitch 113 224 41 32 1 0;
#P user gswitch 25 223 41 32 1 0;
#P inlet 417 49 15 0;
#P inlet 384 47 15 0;
#P inlet 339 45 15 0;
#P inlet 305 46 15 0;
#P inlet 255 47 15 0;
#P inlet 181 48 15 0;
#P inlet 113 51 15 0;
#P inlet 37 49 15 0;
#P outlet 227 373 18 0;
#P outlet 154 375 15 0;
#P outlet 82 369 15 0;
#P outlet 10 369 15 0;
#P fasten 12 0 0 0 30 363 15 363;
#P connect 16 0 12 0;
#P connect 4 0 12 1;
#P fasten 8 0 12 2 310 89 60 89;
#P fasten 13 0 1 0 118 362 87 362;
#P connect 16 0 13 0;
#P connect 5 0 13 1;
#P fasten 9 0 13 2 344 133 148 133;
#P fasten 14 0 2 0 180 366 159 366;
#P connect 16 0 14 0;
#P fasten 6 0 14 1 184 63;
#P fasten 10 0 14 2 389 183 210 183;
#P fasten 15 0 3 0 259 358 232 358;
#P connect 16 0 15 0;
#P connect 7 0 15 1;
#P fasten 11 0 15 2 416 215 289 215;
#P pop 1;
#P newobj 679 351 124 196617 p switcher;
#P toggle 309 111 14 0;
#P newex 267 115 29 196617 / 3 ,;
#P newex 247 91 39 196617 ctlin 1;
#P newex 310 136 42 196617 qmetro;
#P number 545 141 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 539 112 52 196617 / 7.9375;
#P newex 539 90 45 196617 ctlin 91;
#P message 655 581 68 196617 fullscreen $1;
#P toggle 639 580 15 0;
#P newex 682 556 44 196617 sel 102;
#P newex 682 510 40 196617 key;
#P newex 655 625 103 196617 jit.window satellites;
#P newex 121 534 469 196617 jit.glue @rows 6 @columns 6;
#B color 5;
#P button 445 81 15 0;
#P newex 450 138 43 196617 random;
#P newex 396 138 43 196617 random;
#P number 450 170 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 396 160 35 9 1 16 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 450 191 59 196617 columns $1;
#P message 396 191 45 196617 rows $1;
#P message 325 191 58 196617 getcolumns;
#P message 263 191 45 196617 getrows;
#P button 79 148 15 0;
#P message 217 148 27 196617 stop;
#P message 178 148 31 196617 start;
#P message 145 135 102 196617 read countdown.mov;
#P toggle 71 85 14 0;
#P newex 70 105 44 196617 metro 2;
#P newex 97 175 103 196617 jit.qt.movie 320 240;
#P newex 123 222 482 196617 jit.scissors @rows 6 @columns 6;
#B color 5;
#P connect 3 0 2 0;
#P fasten 6 0 1 0 222 170 102 170;
#P fasten 5 0 1 0 183 170 102 170;
#P fasten 4 0 1 0 150 170 102 170;
#P fasten 7 0 1 0 84 170 102 170;
#P connect 11 0 17 0;
#P connect 10 0 17 0;
#P connect 0 0 17 0;
#P connect 1 0 0 0;
#P fasten 9 0 0 0 330 212 128 212;
#P fasten 8 0 0 0 268 212 128 212;
#P fasten 2 0 32 0 75 129 131 129 131 103 145 103;
#P connect 2 0 1 0;
#P connect 0 3 17 3;
#P connect 0 4 17 4;
#P connect 0 5 17 5;
#P connect 0 6 17 6;
#P connect 0 9 17 9;
#P connect 0 10 17 10;
#P fasten 0 11 17 11 270 241;
#P connect 27 0 28 0;
#P connect 0 12 17 12;
#P connect 0 13 17 13;
#P connect 0 14 17 14;
#P connect 29 0 26 0;
#P connect 0 15 17 15;
#P connect 0 16 17 16;
#P connect 28 0 26 1;
#P connect 0 17 17 17;
#P connect 0 18 17 18;
#P connect 0 19 17 19;
#P connect 0 20 17 20;
#P connect 0 21 17 21;
#P connect 14 0 12 0;
#P connect 12 0 10 0;
#P connect 0 22 17 22;
#P connect 0 23 17 23;
#P fasten 0 24 17 24 439 534;
#P fasten 26 0 16 0 315 165 382 165 382 97;
#P connect 0 25 17 25;
#P connect 16 0 15 0;
#P connect 16 0 14 0;
#P connect 15 0 13 0;
#P connect 13 0 11 0;
#P connect 0 26 17 26;
#P connect 0 27 17 27;
#P connect 25 0 15 1;
#P connect 25 0 14 1;
#P connect 0 28 17 28;
#P connect 0 29 17 29;
#P connect 0 30 17 30;
#P connect 0 31 17 31;
#P connect 0 32 17 32;
#P connect 23 0 24 0;
#P connect 24 0 25 0;
#P connect 0 33 17 33;
#P connect 0 34 17 34;
#P connect 0 35 17 35;
#P fasten 20 0 21 0 687 576 644 576;
#P connect 21 0 22 0;
#P connect 22 0 18 0;
#P connect 17 0 18 0;
#P fasten 0 1 30 0 141 262 684 262;
#P connect 19 0 20 0;
#P fasten 0 2 30 1 154 254 700 254;
#P fasten 0 7 30 2 219 248 716 248;
#P fasten 0 8 30 3 232 247 732 247;
#P fasten 31 0 30 4 766 305 748 305;
#P connect 31 0 17 1;
#P fasten 31 1 30 5 795 322 764 322;
#P connect 31 1 17 2;
#P connect 33 0 31 0;
#P fasten 31 2 30 6 824 332 780 332;
#P connect 31 2 17 7;
#P fasten 31 3 30 7 853 338 796 338;
#P connect 31 3 17 8;
#P window clipboard copycount 34;


October 11, 2008 | 5:08 pm

ah I see what my problem was now, I did’t have my second matrix on 6 rows and columns, and it appears it doesn’t work unless thats the case, thank you very much


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