maya_tools.py 文件源码

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

项目:gozbruh 作者: LumaPictures 项目源码 文件源码
def relink(obj, goz_id):
    """Relink object name with existing gozbruhBrushID.
    """
    # manages re linking gozbruhBrush IDs, checks for attribute on shape/xform

    # in the case of a object being duplicated this removes the duplicate
    # to prevent deletion, the 'create' option is prefered
    # is only happens when an object was duplicated and merged (original
    # still exists)
    if cmds.objExists(goz_id):
        cmds.delete(goz_id)

    cmds.rename(obj, goz_id)
    return create(goz_id)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号