def exists(cls):
"""
Return True if an instance of this window exists
"""
result = False
if cmds.workspaceControl(cls.getWorkspaceControlName(), q=True, ex=True):
result = True
if cmds.workspaceControl(cls.getWorkspaceControlName(), q=True, ex=True):
result = True
if cmds.window(cls.OBJECT_NAME, q=True, ex=True):
result = True
return result
评论列表
文章目录