mosssi Posted August 20, 2015 Share Posted August 20, 2015 Hi everyone, I'm a new Houdini user and I have a question please: I want to use an "add attribute" node in "attribute vop" context but I don't know where to attach my float input correctly. I have a Houdini version 12 file that has this node with different inputs that I cant find in H 14 nodes. I tried to use "bind" node instead but there's no variable mapping in this node. can you please help me in this case. Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted August 20, 2015 Share Posted August 20, 2015 The addattribute can create the attribute, set it's data type, default value, and mapping. The setattribute can then be used to set the values. You could also use bind instead of setattribute, but you would still need the addattribute to define the data type, default value, and mapping. Quote Link to comment Share on other sites More sharing options...
anim Posted August 21, 2015 Share Posted August 21, 2015 (edited) you can also search the forums for more, as this question is probably the most frequent since H14 came out Edited August 21, 2015 by anim Quote Link to comment Share on other sites More sharing options...
mosssi Posted August 21, 2015 Author Share Posted August 21, 2015 Thank you jkunz07, I searched for a whole day but I didn't found the point that the key was to use both add attribute and bind together. Quote Link to comment Share on other sites More sharing options...
mirHadi Posted August 23, 2015 Share Posted August 23, 2015 I am new too.. and I have a question about several ways of adding attributes.. how many ways do we have to connect an attribute to a node? - addattribute.. + set - using attribute wrangler -... -... and which of them is preferred? I saw a tutorial about initialing and attribute like using @v=@v in attribute ( or point) wrangler... can we use addattribute instead? that makes me confused... thank you in advance Quote Link to comment Share on other sites More sharing options...
bonsak Posted August 23, 2015 Share Posted August 23, 2015 Hi Peon In an Attribute Wrangle og Point Wrangle you can write: v@"attribute_name" to make a new vector attribute f@"attribute_name" for float s@"attribute_name" for string and i@"attribute_name" for integer attributes Personally i prefer this method as it's easy to read. The "Attribute Create" node does the same thing In VOPS you can do the same thing with the "bind Export" node set to "Export always" Cheers Bonsak Quote Link to comment Share on other sites More sharing options...
mirHadi Posted August 24, 2015 Share Posted August 24, 2015 thank you Bonsak! for the sake of beginners like me; I sum up the methods ( to add a costume attribute to a node) we can use: - using addattrib + set attribute - attribute create node - bind export in vop context - in point and attribute wranglers ( like v@ " attribute name" ... etc). did I drop some way else? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.