Jump to content


Som HOM questions


  • Please log in to reply
1 reply to this topic

#1 Alexey Vanzhula

Alexey Vanzhula

    Peon

  • Members
  • Pip
  • 26 posts
  • Joined: 25-May 12
  • Name:Alexey Vanzhula

Posted 26 May 2012 - 10:18 PM

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, 26 May 2012 - 10:19 PM.


#2 rdg

rdg

    Houdini Master

  • Members
  • PipPipPipPip
  • 729 posts
  • Joined: 21-August 05
  • Location:weta
  • Name:Georg Duemlein

Posted 27 May 2012 - 03:10 AM

View PostAlexey Vanzhula, on 26 May 2012 - 10:18 PM, said:

    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.
The Industrial Parametrization of the World
http://rdg.preset.de/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users