pymel.core.windows.workspacePanel

workspacePanel(*args, **kwargs)

Workspace panel.

Flags:

Long Name / Short Name Argument Types Properties
defineTemplate / dt unicode ../../../_images/create.gif
  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 ../../../_images/create.gif
  Returns whether the specified object exists or not. Other flags are ignored.
mainWindow / mw bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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 ../../../_images/create.gif
  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’ #