Jump to content

vex function find all attribute name


morn66

Recommended Posts

Hey everyone,

is there a vex function that can return an array of all the attributes name store on a point?

For exemple, I want to transfer all the attributes to a new point, but the attributes can be different from each situation. Is there a way to store in a array the attributes name so after that I can loop over the array and setpointattrib.

I know I can do something similar with the attribute transfer node, but I'll prefer something compatible with Compile Sop.

Thanks guys!

Link to comment
Share on other sites

Hi Julien, with addpoint() you can reference an existing point to get all its attributes and group memberships:

image.png.e26bf1a4823ee46bdeccd85511361667.png

https://www.sidefx.com/docs/houdini/vex/functions/addpoint.html

 

Also, there is a detail intrinsic, which stores all the point attribute names:

s[]@pointattributes = detailintrinsic(0,"pointattributes");

 

  • Thanks 2
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...