Forums > Jitter

jit.cellblock mouseclick problem

November 11, 2006 | 10:53 am

In the patch below, when I click on something in the first column, the jit.cellblock generates a response, which is the message in the second column, which is printed to the message box. It works.

But the problem is that to grab the response, I have to select (via message) something in the second column, and thus I’ve selected a different cell than has been clicked on. The jit.cellblock then reads any subsequent mouse movement, as well as the release of the mouse button, as a reselection of the cell in the first column. You can see in the max window that the cells are triggered over and over.

Is there any way around this? Is there any way to trigger output from the jit.cellblock without having it toggle back and forth between the cell that has been clicked on and the cell that has gotten a select message? Or to put it another way, is it possible to trigger a cell without selecting it?

I hope I’ve just missed something really obvious.

max v2;
#N vpatcher 157 409 786 1009;
#P window setfont "Sans Serif" 9.;
#P number 167 277 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 188 326 51 196617 zl slice 1;
#P window setfont "Sans Serif" 18.;
#P message 229 369 266 196626 and you;
#P window setfont "Sans Serif" 9.;
#P newex 229 347 62 196617 prepend set;
#P message 167 299 61 196617 select 1 $1;
#P newex 167 255 58 196617 unpack 0 0;
#P newex 167 234 52 196617 route 0 1;
#P newex 224 233 32 196617 print;
#P user jit.cellblock 167 88 369 222 3 9 2 10 101 17 0 1 1 1 0 0 0 0 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 this;
#X set 0 1 something;
#X set 0 2 hello;
#X set 0 3 you;
#X set 0 4 me;
#X set 0 5 less than zero;
#X set 1 0 and that;
#X set 1 1 something else;
#X set 1 2 goodbye;
#X set 1 3 and them;
#X set 1 4 and you;
#X set 1 5 more than zero;
#P fasten 4 0 0 0 172 320 136 320 136 82 172 82;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 8 0;
#P connect 8 0 4 0;
#P connect 2 1 7 0;
#P connect 0 0 1 0;
#P connect 7 1 5 0;
#P connect 5 0 6 0;
#P pop;


November 12, 2006 | 2:33 pm

Hello,

you could use ‘remote send’: jit.cellblock can send any cell values to
specified receive object, checkout it’s help patch.

cheers,
nesa


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