stkeg Posted September 18, 2013 Share Posted September 18, 2013 (edited) i want to set some point attributes on some geometry. http://www.sidefx.co...accessAttribute i was following this example: GA_RWAttributeRef h = gdp->findFloatTuple(GA_ATTRIB_POINT, "testattr", 3);const GA_AIFTuple *tuple = h.getAIFTuple();if (tuple){ UT_Vector3 N; for (GA_Iterator it(gdp->getPointRange()); !it.atEnd(); it.advance()) { GA_Offset offset = it.getOffset(); tuple->get(h.getAttribute(); offset, N.data(), 3); N.normalize(); tuple->set(h.getAttribute(), offset, N.data(), 3); }}[/CODE]it's able to get the values of the point attribute, the problem is that it doesn't seem to update the values in the gui.when i get the values from within the hdk, it seems like the values have been written, but the details view in the gui shows that the values have not changed.i noticed that i cannot go into the details view and manually change values. when i do, the createAttribute node that i used to create my example attribute (testattr) the red lock toggle is turned on for that node. maybe this has something to do with the fact that i can't change values from within the hdk? Edited September 19, 2013 by stkeg Quote Link to comment Share on other sites More sharing options...
stkeg Posted September 19, 2013 Author Share Posted September 19, 2013 (edited) seems like i can't addFloatTuple from within a SIM node, but i can from a SOP node. any suggestions on how i can modify attributes from within a SIM node? Edited September 19, 2013 by stkeg 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.