sortedNodePaths(path_tuple)
→ string
のtuple
ネットワークの走査順に従ってノードを並べ替えます。ルートノードが最初に来て、リーフノードが最後に来ます。
>>> hou.node('/obj').createNode('simplefemale') <hou.ObjNode of type simplefemale at /obj/simplefemale1> >>> paths = ["/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.sortedNodePaths(paths) ('/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 |