MJGaiser Posted October 21, 2015 Share Posted October 21, 2015 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. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 22, 2015 Share Posted October 22, 2015 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. Quote Link to comment Share on other sites More sharing options...
MJGaiser Posted October 22, 2015 Author Share Posted October 22, 2015 Works like a charm. Thanks! 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.