Jump to content
morn66

vex function find all attribute name

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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Omg! I never use addpoint that way!!

Cool I'll play with that.

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×