[Sidefx-houdini-list] Simple VEX Question

Floyd Gillis floyd at afcg.com
Thu Jul 13 23:30:04 EDT 2017


Hello All,

Still muddling my way through VEX.

As an example… I have an Attribute Wrangle with 3 inputs.
Input 1: some geometry
Input 2: a single animating point
Input 3: another single animating point

If I have the following vex snippet… (the actual function is more complex.)
*
**/float test = 1.2;/**/
/**/@P = @P * test;/*

All points will have their xyz values multiplied by “test”.

But if I have…

*/float test = distance(@opinput1_P, @opinput2_P);/**/
/**/@P = @P * test;/*

Only the first point will have it’s xyz values multiplied by “test”.

Have tried various combinations of v@, @, etc.  Any help appreciated.

Floyd




More information about the Sidefx-houdini-list mailing list