Jump to content
SteveNi

Issue while creating atribute

Recommended Posts

Hi

Screenshot_1.jpg

I need to initialize an attribute in a wrangle wich runs in Detail mode (only once), so I cant simply write " i@status; ", thats why I thought to use a for loop and the setattrib() function, but that code does not create any attribute on the points...why is this happening?

Thanks

Share this post


Link to post
Share on other sites

Well that's not how wrangle works. Why wouldn't just write i@status; work? Detail is per object, not per point.

 

edit: on the bottom left you are looking at the points attributes, you have to switch to detail attributes.

Edited by sasho78

Share this post


Link to post
Share on other sites

You need to use addattrib(). Setattrib() can only set the values but not create an attribute.

Share this post


Link to post
Share on other sites
Quote

Well that's not how wrangle works. Why wouldn't just write i@status; work? Detail is per object, not per point.

Oh yea...I forgot it.

Quote

You need to use addattrib(). Setattrib() can only set the values but not create an attribute.

Thanks sometimes I cant remember even simple stuff like this.

Thanks guys.

Share this post


Link to post
Share on other sites

maybe I don't get the idea, but why not just use point wrangle? sorry if I seem to be rude :)

Share this post


Link to post
Share on other sites
Quote

maybe I don't get the idea, but why not just use point wrangle? sorry if I seem to be rude

Dont worry man.

I simply wanted to see if that was possible to do in Detail mode using those functions :)

Just experimenting :)

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

×