rayman Posted August 5, 2013 Share Posted August 5, 2013 Is it possible? I want to get gluenetwork solved geometry from relationships data. It is possible to get this data from DOP to SOP and then to get geometry from there but I`m wondering if there is simpler/faster way? thanks Quote Link to comment Share on other sites More sharing options...
graham Posted August 5, 2013 Share Posted August 5, 2013 Unfortunately it's not possible to extract geometry data as hou.Geometry from raw DOPs data. Quote Link to comment Share on other sites More sharing options...
rayman Posted August 5, 2013 Author Share Posted August 5, 2013 Thank you! Quote Link to comment Share on other sites More sharing options...
rayman Posted August 13, 2013 Author Share Posted August 13, 2013 (edited) Found it! Just copy SIM_GeometryCopy data to empty object and then access this object. def createGlueData(): obj = hou.node('.').simulation().createObject("glueGeo",1) data = hou.node('.').simulation().findRelationship('glueNet').findSubData('gluenetwork/Geometry') obj.attachSubData(data,"Geometry")[/CODE] [b]attachSubData[/b] Make existing data become subdata of this data. Houdini does not create a duplicate of the data. Instead, the data’s parent(s) and this data will both refer to the same instance of subdata. You would call this method from a script solver DOP. I`m wondering why attaching data to existing objects does not share the same geometry data (I have to attach it every frame otherwise it doesn`t update). Edited August 13, 2013 by rayman 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.