Jump to content
Sign in to follow this  
Alexey Vanzhula

Som HOM questions

Recommended Posts

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 by Alexey Vanzhula

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×