def deformer_check(obj, *args):
"""
check if there are other deformers on the obj
:param args:
:return:
"""
deformers = rig.get_deformers(obj)
if deformers:
cmds.confirmDialog(title='Deformer Alert!',
message='Found some deformers on {0}.\nYou may want to put the softmod\n early in the '
'input list\n or check "front of chain"'.format(obj),
button=['OK'], defaultButton='OK', cancelButton='OK', dismissString='OK')
评论列表
文章目录