Jump to content

Custom Local Attribute in VEX


math83

Recommended Posts

Hello all, 

I'm creating an attribute in point VOP and exporting it using bind. I'm also using add attribute within the point VOP to give the attribute a local variable name. I'm also specifying the class as "Detail" 

Later, I'm adding a node (any node it doesn't matter) to this and in one of the channels I'm trying to reference my attribute by using $MYATTRIBUTE However the result returns as 0, when the value should be 1.0 (it is 1.0 for every point)

 

What am I doing wrong? 

Thank you.

Link to comment
Share on other sites

Hello all, 

I'm creating an attribute in point VOP and exporting it using bind. I'm also using add attribute within the point VOP to give the attribute a local variable name. I'm also specifying the class as "Detail" 

Use the same class as the attribute is. Right now you are essentially creating a new detail attribute with the same name as your point attribute, and you are linking this attribute to the variable - not the point one.

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...