SteveNi Posted December 7, 2016 Share Posted December 7, 2016 Hi 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 Quote Link to comment Share on other sites More sharing options...
dimovfx Posted December 7, 2016 Share Posted December 7, 2016 (edited) 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 December 7, 2016 by sasho78 Quote Link to comment Share on other sites More sharing options...
Skybar Posted December 7, 2016 Share Posted December 7, 2016 You need to use addattrib(). Setattrib() can only set the values but not create an attribute. Quote Link to comment Share on other sites More sharing options...
SteveNi Posted December 7, 2016 Author Share Posted December 7, 2016 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. Quote Link to comment Share on other sites More sharing options...
dimovfx Posted December 7, 2016 Share Posted December 7, 2016 maybe I don't get the idea, but why not just use point wrangle? sorry if I seem to be rude Quote Link to comment Share on other sites More sharing options...
SteveNi Posted December 7, 2016 Author Share Posted December 7, 2016 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.