sortedNodePaths(node_tuple)
→ tuple
of hou.Node
Sorts nodes following the network traversal order. Root nodes appear first and leaf nodes come last.
>>> hou.node('/obj').createNode('simplefemale') <hou.ObjNode of type simplefemale at /obj/simplefemale1> >>> nodes = hou.nodes( ["/obj/simplefemale1/ctrl_master","/obj/simplefemale1/ctrl_IK_wrist_right","/obj/simplefemale1/ctrl_cog","/obj/simplefemale1/ctrl_neck","/obj/simplefemale1/ctrl_head","/obj/simplefemale1/ctrl_FK_hand_right"] ) >>> hou.sortedNodes(nodes) ('/obj/simplefemale1/ctrl_master', '/obj/simplefemale1/ctrl_cog', '/obj/simplefemale1/ctrl_IK_wrist_right', '/obj/simplefemale1/ctrl_neck', '/obj/simplefemale1/ctrl _head', '/obj/simplefemale1/ctrl_FK_hand_right')
See also |