Custom Variable mapping

   10998   9   1
User Avatar
Member
2624 posts
Joined: 8月 2006
オフライン
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
614 posts
Joined: 11月 2005
オフライン
you can set a local variable name in the Add Attribute
User Avatar
Member
2624 posts
Joined: 8月 2006
オフライン
Sorry I don't follow how is that connected to creating an attribute in vops

rob
Gone fishing
User Avatar
Member
512 posts
Joined: 7月 2009
オフライン
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: 8月 2006
オフライン
Ahhh , how on earth did I miss that one

Rob
Gone fishing
User Avatar
Member
614 posts
Joined: 11月 2005
オフライン
thanks for translating, manu
User Avatar
Member
2624 posts
Joined: 8月 2006
オフライン
I dont think my coffee had kicked in …..

rob :shock:
Gone fishing
User Avatar
Member
18 posts
Joined: 6月 2015
オフライン
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: 11月 2008
オフライン
http://www.sidefx.com/docs/houdini15.0/vex/functions/addvariablename [sidefx.com]
User Avatar
Member
1743 posts
Joined: 3月 2012
オフライン
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