pymel.core.windows.workspacePanel¶
- workspacePanel(*args, **kwargs)¶
Workspace panel.
Flags:
Long Name / Short Name Argument Types Properties defineTemplate / dt unicode Puts the command in a mode where any other flags and arguments are parsed and added to the command template specified in the argument. They will be used as default arguments in any subsequent invocations of the command when templateName is set as the current template. exists / ex bool Returns whether the specified object exists or not. Other flags are ignored. mainWindow / mw bool Main window for the application. The main window has an ‘Exit’ item in the Window Manager menu. By default, the first created window becomes the main window. useTemplate / ut unicode Forces the command to use a command template other than the current one. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.workspacePanel
Example:
- ::
import pymel.core as pm
pm.workspacePanel(mainWindow=True) # Result: u’MayaWindow|workspacePanel2’ #