Jump to content

Add Attribute


mosssi

Recommended Posts

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.

post-14228-0-39870700-1440100629_thumb.j

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...