Jump to content
JorbWang

how get attributes name?

Recommended Posts

Hi odforce,

    i have a small problem,its confused me a few days.how can i get the attributes name use vex or python(vex is better,because im not familiar with python)?

    for example,i have a geometry with some point attirbutes like "v" "Cd" "mass" "aaa",and prim attributes like "prima" "primb".if i want create a new string attribute and store all the attributes,how do i achieve that?

Share this post


Link to post
Share on other sites

Hi Jorb, there are four detail intrinsic, as in the attached image ... which store what you need. You can access these intrinsic attributes with python or VEX. With VEX, you can access them like this:

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

 

image.thumb.png.fac3f1c71cf0130ae1ac28b08fa63829.png

 

  • Like 1

Share this post


Link to post
Share on other sites
16 minutes ago, ikoon said:

Hi Jorb, there are four detail intrinsic, as in the attached image ... which store what you need. You can access these intrinsic attributes with python or VEX. With VEX, you can access them like this:


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

 

image.thumb.png.fac3f1c71cf0130ae1ac28b08fa63829.png

 

it's all i want.THANK YOU Jiri!Cheers!

  • 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

×