Hey!
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".
Also the thing that you're doing is very strange. You have both "updateWavePoints" function and "wavePoints" array in javascript, but instead of calling the function in javascript code, you're trying to call it from Construct. That is wrong on so many levels.
If you're using Javascript Plugin you're supposed to either call javascript functions with parameters from Construct, or do Construct stuff using data from javascript. Using plugin to call javascript functions that operate on javascript data that was taken from javascript to Construst and translated back to javascript, — is weird and ineffective.
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.