sortedNodePaths(node_tuple)
→ hou.Nodeのtuple
ネットワークの走査順に従ってノードを並べ替えます。ルートノードが最初に来て、リーフノードが最後に来ます。
>>> 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 |