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)
评论列表
文章目录