Forums > MaxMSP

jit. cellblock date to a coll object

February 19, 2006 | 5:47 pm

hi,

i have 3 independent jit.cellblocks

one is for x coords
one is for y coords
and one for mass

its the final outputstyle of the cv.jit.centers object

now i want to have the values in a coll file in the format

1 x y mass

whats teh fastets way to get this? any special object or have i cylce throu the cellblock and write it to coll manually?



Nat
February 19, 2006 | 7:40 pm

Hmm, you can refer your cell block to a coll using the refer message, check the help of jit.cellbock.


February 20, 2006 | 2:51 am

Here is a little patch that will assemble the output of three cellblocks
into a single coll. You can probably alter it to suit your needs.

[ddg]
Darwin Grosse

max v2;
#N vpatcher 10 59 626 598;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 151 125 27 196617 – 1;
#N coll clickme;
#P newobj 117 458 63 196617 coll clickme;
#P newex 394 392 51 196617 zl slice 2;
#P newex 283 392 51 196617 zl slice 2;
#P newex 172 390 51 196617 zl slice 2;
#P newex 117 432 83 196617 pack 0 0 0 0.1;
#P message 394 169 31 196617 0 $1;
#P message 283 169 31 196617 0 $1;
#P message 172 169 31 196617 0 $1;
#P newex 87 97 40 196617 uzi 10;
#P button 87 48 23 0;
#P user jit.cellblock 394 200 456 387 3 9 1 10 45 17 0 1 1 1 0 0 1 1 1 0 0 0
255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
#X set 0 0 0.11;
#X set 0 1 0.22;
#X set 0 2 0.33;
#X set 0 3 0.44;
#X set 0 4 0.55;
#X set 0 5 0.66;
#X set 0 6 0.77;
#X set 0 7 0.88;
#X set 0 8 0.99;
#X set 0 9 1.252;
#P user jit.cellblock 283 200 345 387 3 9 1 10 45 17 0 1 1 1 0 0 1 1 1 0 0 0
255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
#X set 0 0 2;
#X set 0 1 4;
#X set 0 2 6;
#X set 0 3 8;
#X set 0 4 10;
#X set 0 5 12;
#X set 0 6 14;
#X set 0 7 16;
#X set 0 8 18;
#X set 0 9 20;
#P user jit.cellblock 172 198 234 385 3 9 1 10 45 17 0 1 1 1 0 0 1 1 1 0 0 0
255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
#X set 0 0 1;
#X set 0 1 2;
#X set 0 2 3;
#X set 0 3 4;
#X set 0 4 5;
#X set 0 5 6;
#X set 0 6 7;
#X set 0 7 8;
#X set 0 8 9;
#X set 0 9 10;
#P window setfont "Sans Serif" 12.;
#P comment 119 52 173 196620 Click me to load the coll…;
#P connect 4 0 5 0;
#P connect 5 2 9 0;
#P connect 9 0 13 0;
#P connect 10 1 9 1;
#P connect 5 2 14 0;
#P connect 11 1 9 2;
#P connect 14 0 6 0;
#P connect 6 0 1 0;
#P connect 1 0 10 0;
#P connect 12 1 9 3;
#P connect 14 0 7 0;
#P connect 7 0 2 0;
#P connect 2 0 11 0;
#P connect 14 0 8 0;
#P connect 8 0 3 0;
#P connect 3 0 12 0;
#P pop;


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