JS.AliasValue is a Construct expression. It only returns Construct basic types: number or string. It can't return arrays. Construct doesn't understand this type of variables.
Thus, JS.AliasValue( "wavePoints" ) returns 0, so you're calling function "updateWavePoints" with parameter "0".
Hi, i've a problem with arrays. I've two functions in my js, the first one return an array as result, and it works correctly. Then i need to call the second one passing the array (stored in an alias) as parameter but it seems to not working. What i'm wrong!?
As you can see, "wavePoints" is an array, and i would like to pass to "updateWavePoints" function.