ClausKleber Posted May 8, 2014 Share Posted May 8, 2014 Hi, is there a way to write a point attribute in a Python Dop? I know that the usual way like objects.geometry() returns a read-only reference and only in a Python Sop you get it writable. But i want to change the attributes during the simulation. Thanks! Quote Link to comment Share on other sites More sharing options...
ClausKleber Posted May 8, 2014 Author Share Posted May 8, 2014 (edited) I've found a way. It's pretty easy. You can get an editable geometry in the Python Dop: objects = hou.pwd().objectsToProcess() with objects[0].editableGeometry() as geo: for point in geo.points(): point.setAttribValue("life", 0.5) Edited May 8, 2014 by ClausKleber 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.