Alexey Vanzhula Posted May 27, 2012 Share Posted May 27, 2012 (edited) 1. Simple piece of code: try: hou.node('/obj/').destroy() except: pass In Houdini and Hython it works well. But in remote functions ( from Maya and other python interpreters ) with hrpyc it does return error and exception dont work. 2. How to know that node is deletable? It is hou.Node.isLocked() method, but it works only for HDA. What about other non-deletable nodes? Edited May 27, 2012 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
rdg Posted May 27, 2012 Share Posted May 27, 2012 hou.node('/obj/').destroy() Why do you want to delete /obj in the first place? It's a built in network not a node, deleting it doesn't really make sense. hou.NodeType.isManager() might tell you if something is not a node. 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.