Taking multiple numbers such as coordinates and outputting one number.

Jan 14, 2012 at 7:37am

Taking multiple numbers such as coordinates and outputting one number.

I am trying to use a coll to input a list of to numbers and I want it to spit out a single value should I be using the coll or is there a better object and if I should use the coll then what is the format that I have to put the list in. I have tried the following:
0 0, 0;
0 1, 1;
0 2, 2;
0 3, 3;
0 4, 4;
0 5, 5;
0 6, 6;
0 7, 7;
0 8, 8;
0 9, 9;
0 10, 10;
0 11, 11;
0 12, 12;
0 13, 12;
0 14, 12;
1 0, 13;
1 1, 14;
1 2, 15;
1 3, 16;
1 4, 17;
1 5, 18;
1 6, 19;
1 7, 20;
1 8, 21;
1 9, 22;
1 10, 23;
1 11, 24;
1 12, 25;
1 13, 25;
1 14, 25;

This does not seem to work please help.

#56787
Jan 14, 2012 at 9:37am

I really don’t understand what you’re trying to accomplish here, but the format for coll is:
index, data_1 data_n;

#203524
Jan 14, 2012 at 9:42am

yup, the comma must go.

#203525
Jan 15, 2012 at 12:20am

I want it to recieve a list of two numbers such as 0 0 and then output one number. So if I send it a packed list of 0 13 I want it to output 13. Or 1 13 then 26.

#203526
Jan 15, 2012 at 1:22am

If the pattern you’ve shown repeats every 15 digits then the following patch will accomplish what you want.

– Pasted Max Patch, click to expand. –
#203527

You must be logged in to reply to this topic.