Jump to content

DopObject Operator Type?


MJGaiser

Recommended Posts

So I am looping through my simulation objects and want to get the dop id for all the rbdpackedobjects, and skip all the static objects, etc... The closest I have been able to get is listing the dopObjects dataType but that only tells me that its a "Sim_Object".

 

Does anyone know how to get the Operator Type of a dopObject through Python? Thanks.

 

 

Link to comment
Share on other sites

Guest mantragora

Maybe you could get its 

crPar = hou.DopObject.creator().parent()
print(crPar.type.name())

or if this wont work, just get

# path of the creator
crPath = hou.DopObject.creator().path()
# name of Dop object
name = hou.DopObject.name()

and use this name to remove from crPath part after the name.

This should give you exact path to the node, from here it should be straightforward to get node type.

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...