def _unparent_children(joint):
"""Helper function to unparent any children of the given joint.
@param joint: Joint whose children to unparent.
@return: A list of the unparented children.
"""
children = cmds.listRelatives(joint, children=True, path=True) or []
return [cmds.parent(child, world=True)[0] for child in children]
评论列表
文章目录