def show(self):
# First we check if a window of this name already exists.
# This prevents us having many tweener windows when we just want one
if cmds.window(self.windowName, query=True, exists=True):
# If another window of the same name exists, we close it by deleting it
cmds.deleteUI(self.windowName)
# Now we create a window using our name
cmds.window(self.windowName)
# Now we call our buildUI method to build out the insides of the UI
self.buildUI()
# Finally we must actually show the window
cmds.showWindow()
评论列表
文章目录