Jump to content

how to get hou.Geometry from SIM_DopData


rayman

Recommended Posts

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

Link to comment
Share on other sites

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 by rayman
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...