outputing list from function
hello,
I am using Max 4.5, and I'm trying to output a list from function into a js code I'm writing. I've stretched a line from the third output of the function which notes ('dump Message Output (list)). However when I send the dump message and check the inlets for lists (using function msg_list), there's nothing there, and I discovered that it actually comes in as a float instead of as a list. And not only that, but the second float (y) doesn't come in at all. This is a big problem.
is this just a bug? is it possible in higher versions of Max? is it possible at all? am I missing something?
Thanks in advance!
P.S
I'm not sure, if this is the right forum or should I post this in javascript forum. Please tell me.
1) Instead of msg_list(), try list(); the function name for lists is different from msg_int() and msg_float().
2) To access items of the list use the arguments[] array. You can see how many items are in the list with arguments.length, and you can access them by index with arguments[i].