|
|
>> How come this doesn't parse:
>>
>> #local V = <0,1,2>;
>> #local f = function(x,y,z){ sin(x*V.x) }
>>
>> but this does:
>>
>> #local V = <0,1,2>;
>> #local Vx = V.x;
>> #local f = function(x,y,z){ sin(x*Vx) }
>
> Vectors don't work in functions. Nothing vector-like will work, except if your
> function is a special vector function (defined as a transform or a spline).
> Everything else is scalar-only.
Isn't V.x a scalar value? It's not obvious why it results in an error,
after all the parser internally should evaluate V.x and Vx to exactly
the same value (zero in this case).
> This message is better suited for the "newusers" section.
Oops, must have selected the wrong group... changed it now.
Post a reply to this message
|
|