Three dashes in Javascript?
Hi,
Is there any way to find out the unique identifier that Max uses inside a patch with Javascript?
For instance, if I use "s ---sendName" as a send in a patch, then when the patch is opened this will be converted to something like "s 023sendName"
I'm wondering how to get the 023 bit in Javascript?
Hi, did you find a solution for this? Currently stuck on this problem!
[js your_script.js ---YourSendName] and read the value of that argument using jsarguments[1].
Hi Tyler thanks for replying. Do you mean put "---NAME" at the end of the js object, and to call jsarguments(1) from inside Js? Will the --- change to the random numbers?
Thanks again gonna try it it later but if that's how it is you may have solved my problem!
Yes. read up on jsarguments in the docs (and use brackets, not parens). It works like using #1 or #2 arguments in a max abstraction. And yes, the three dashes are converted to the device-specific random numbers.