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