def toggleMushVisbility(self):
mush = self.sourceField.text()
if not mush:
return
mush += '_Mush'
if not cmds.objExists(mush):
return
try:
cmds.setAttr(mush + '.visibility', not bool(cmds.getAttr(mush + '.visibility')))
except Exception as e:
print(e)
评论列表
文章目录