Custom Variable mapping

   9739   9   1
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Ive always wondered why when you create an attribute in VOPs that it does not automatically get a custom variable mapping for use in other areas of Houdini. Instead I have to create the attribute again after the VOP and uncheck “write values” . This then applies the custom mapping correctly to the attribute.

Is this the correct work flow ?

Rob
Gone fishing
User Avatar
Member
577 posts
Joined: Nov. 2005
Offline
you can set a local variable name in the Add Attribute
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Sorry I don't follow how is that connected to creating an attribute in vops

rob
Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
what Martin means is when you create an attribute with the “add attribute” VOP there is a parameter “Local Variable Name” where you can set the variable mapping :wink:
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Ahhh , how on earth did I miss that one

Rob
Gone fishing
User Avatar
Member
577 posts
Joined: Nov. 2005
Offline
thanks for translating, manu
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
I dont think my coffee had kicked in …..

rob :shock:
Gone fishing
User Avatar
Member
17 posts
Joined: June 2015
Offline
Is there a way to do the same thing in a point wrangle (and avoid the workflow mentioned at the beginning)?

Thanks,
User Avatar
Member
392 posts
Joined: Nov. 2008
Offline
http://www.sidefx.com/docs/houdini15.0/vex/functions/addvariablename [sidefx.com]
User Avatar
Member
1743 posts
Joined: March 2012
Offline
Isaac Katz
Is there a way to do the same thing in a point wrangle (and avoid the workflow mentioned at the beginning)?
Houdini 15.0 doesn't need local variable mappings anymore, because in almost any case where you would have needed a local variable mapping before, you can now use @attribname or @attribname.x, etc, instead of $VARNAME or $VARNAMEX, etc.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
  • Quick Links