Need Help - Custom Variable Mapping -addvariablename notwork

   3645   2   1
User Avatar
Member
15 posts
Joined: July 2006
Offline
I was watching the wrangle-workshop tutorial

I tried to create a custom variable using the addvariablename VEX function in the pointwrangle node. The following works in Houdini 12.5, 13 BUT errors out in Houdini 14 & 15.


f@num = @P.x;
addvariablename(“num”,“NUM”);

Please can some one guide me.
Thanks
User Avatar
Member
702 posts
Joined:
Offline
in h15 you really dont need the variable names any longer

instead of using the $NUM variable when the tutorial calls for it simply use the @num as you would in the wrangle

not sure if they broke something with addvariablename, but again its moot in h15
User Avatar
Staff
6204 posts
Joined: July 2005
Offline
addvariablename() in the CVEX contexts needs which geometry to add to..

addvariablename(geoself(), ‘num’, ‘NUM’);

The point wrangle SOP in 14+ is an attribute wrangle, rather than a wrapper on VOP SOP to make all our contexts consistent.

But, as noted, the need for variable mappings is greatly reduced in H15.
  • Quick Links