Create nodes into plural node.children with Python.

   2772   2   1
User Avatar
Member
25 posts
Joined: Jan. 2011
Offline
I consider getting plural subnets directly with hou.selectedNode() and intended to look up the plural their children simultaneously as creating NetworkBox and new Nodes like Box …but seems I've got wrong idea.

Anybody's got ideas?
Thank you.
User Avatar
Member
25 posts
Joined: Jan. 2011
Offline
I was trying to use functions like:


ssubnet = hou.selectedNode()
for node in ssubnet:
ngeo = hou.node(ssubnet).createNode(“geo”)


but the variables can't apply the directly by node() method(because the variable defined as tuple type?)
User Avatar
Member
25 posts
Joined: Jan. 2011
Offline
Have solved the problem by just easy way

snode = hou.selectedNode()
for node in snode:
node.createNode(“null”)
  • Quick Links