[Sidefx-houdini-list] array elements referring in VEX

Szymon Kapeniak szymon.kapeniak at gmail.com
Tue Aug 24 05:57:15 EDT 2010


hello,
me or vex can't handle referencing array's element as user function's
variable. Is it my mistake (hopefully), or in fact a current
limitation (rsl seems to work this way)?

<code>

void userf(float a) {  a = 1.0; }

surface test()
{

   float test[] = {0,0,0};
   userf(test[0]);
   printf("%f", test);
}

</code>

if userf() is changed to accept w whole array, this of course works:

void userf(float a[]) { a[0] = 1.0; }


thanks for any comments!
skk.



More information about the Sidefx-houdini-list mailing list