Javascript actor with multiple outputs
-
I want to create a javascript actor with one input and multiple outputs. How do I name the outputs? are they still arguments[i] or are they named differently somehow?
It's probably in the arguments object documentation, but I couldn't seem to find it.Tom -
You return a list . The outputs wl be the list items in order of output. something like .. var out = [ v1 , v2 ]; return out; Your outputs available will be v1 and v2. But not labeled as such.
-
The 'getting started with javascript' knowledge base article covers this. http://troikatronix.com/support/kb/getting-started-with-javascript/
-
Thamks! I knew it was obvious. Just couldn't see it yesterday. I did skim the getting started, but I missed the sentence "An array can be returned by the return statement to allow multiple outputs from the Javascript actor." I probably read it, but it didn't really register. Not enough sleep.