problems debugging large if statement; grab/coll as a solution

May 23, 2011 at 3:03pm

problems debugging large if statement; grab/coll as a solution

hello everyone

Hope it’s all fine with you guys.. I am trying to get 16 states from a bi-dimensional axis, by dividing the coordinates into zones with if statements (one of x, other for y), and then analysing the list of x y.. I am doing it with if statement, and I am experiencing some problems because its not working properly.. I’ve been suggested by a friend to use coll+grab.. but I am not being able to put this working properly.. If you can help me debugging the largest if statement/debugging coll+grab, it would be a handsome help..

thanks in advance
have a nice weekend
tiago

– Pasted Max Patch, click to expand. –
#56950
May 23, 2011 at 3:17pm

Too lasy to carefully check your huge (and ugly) if statement, but the following patch may do more or less what you want, or should be easy to adapt to suits your needs :

– Pasted Max Patch, click to expand. –
#204117
May 23, 2011 at 5:49pm

[if] can give you not more than 3 states, if then, if else, or no output.

for 16 states try something else.

is that for jitter stuff or only a for a GUI/mouse job?

if it is for mouse input, then i would just do 16 parallel checks for “if it is
inside a certain rect” … or whatever has to be checked.

-110

#204118

You must be logged in to reply to this topic.