zbw_rig.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:zTools 作者: zethwillie 项目源码 文件源码
def groupFreeze(obj="", suffix = "GRP", *arg):
    """
    takes an object in worldspace and snaps a group to it, then parents obj to that group
    i.e. zeros out the obj's translates and rotations
    Args:
        obj (string): the object to put under the group (to zero it's transforms)
    Returns:
        string: returns the new group
    """

    grp = cmds.group(empty=True, name="{0}_{1}".format(obj, suffix))
    snapTo(obj, grp)
    cmds.parent(obj, grp)

    return(grp)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号