Jump to content

Som HOM questions


Alexey Vanzhula

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
Link to comment
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.

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