pymel.core.windows.workspaceControl

workspaceControl(*args, **kwargs)

Creates and manages the widget used to host windows in a layout which enables docking and stacking windows together.

Flags:

Long Name / Short Name Argument Types Properties
checksPlugins / cp bool ../../../_images/create.gif ../../../_images/edit.gif
  Sets whether the UI (as defined by the uiScript) checks the loaded state of one or more plugins in its code. The UI will not be loaded until the auto-loading of plugins is complete. Default value is false.
close / cl bool ../../../_images/edit.gif
  Closes the workspace control.
defineTemplate / dt unicode ../../../_images/create.gif
  Puts the command in a mode where any other flags and args 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.
dockToControl / dtc unicode, unicode ../../../_images/create.gif ../../../_images/edit.gif
  Dock this workspace control next to the given control. The first argument is the control name, the second is dock position relative to the control (valid values are: left, right, top, bottom).
dockToMainWindow / dtm unicode, bool ../../../_images/create.gif ../../../_images/edit.gif
  Dock this workspace control into the main window. The first argument is dock position along the sides of the main window (valid values are: left, right, top, bottom), the second is whether or not the control should be tabbed into the first control found at the dock position.
dockToPanel / dtp unicode, unicode, bool ../../../_images/create.gif ../../../_images/edit.gif
  Dock this workspace control into the given workspace docking panel. The first argument is the panel name, the second is dock position along the sides of the panel (valid values are: left, right, top, bottom), the third is whether or not the control should be tabbed into the first control found at the dock position.
exists / ex bool ../../../_images/create.gif
  Returns whether the specified object exists or not. Other flags are ignored.
floating / fl bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Whether the workspace control is floating.
height / h bool ../../../_images/query.gif
  Query only flag returning the current height of the control.
heightProperty / hp unicode  
   
initialHeight / ih int ../../../_images/create.gif ../../../_images/edit.gif
  The initial height of the workspace control when first shown.
initialWidth / iw int ../../../_images/create.gif ../../../_images/edit.gif
  The initial width of the workspace control when first shown.
label / l unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  The label text. The default label is the name of the workspace control.
loadImmediately / li bool ../../../_images/create.gif ../../../_images/edit.gif
  Sets whether the UI (as defined by the uiScript) will be built immediately on workspace control creation (true) or delayed until the control is actually shown (false). Default value is false.
minimumWidth / mw bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Sets the minimum width of control to the initial width. This should be used along with initial width flag.
r / r bool ../../../_images/query.gif ../../../_images/edit.gif
  Whether the workspace control widget is visible and either floating or at the top of its workspace area.
requiredPlugin / rp unicode ../../../_images/create.gif ../../../_images/edit.gif
  The name of a plug-in that needs to be loaded in order to build the workspace control UI.
retain / rt bool ../../../_images/create.gif
  Sets whether the workspace control is retained (i.e. only hidden) or deleted when closed. Default value is true.
tabToControl / ttc unicode, int ../../../_images/create.gif ../../../_images/edit.gif
  Tab this workspace control into the given control. The first argument is the control name, the second is the index position within the containing tab widget (invalid values mean append).
uiScript / ui script ../../../_images/create.gif ../../../_images/edit.gif
  The specified script will be invoked to build the UI of the workspaceControl. This is a required flag.
useTemplate / ut unicode ../../../_images/create.gif
  Forces the command to use a command template other than the current one.
visible / vis bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  The visible state of the workspace control. A control is created visible by default.
visibleChangeCommand / vcc script ../../../_images/create.gif ../../../_images/edit.gif
  Command that gets executed when visible state of the workspace control changes.
width / w bool ../../../_images/query.gif
  Query only flag returning the current width of the control. Flag can have multiple arguments, passed either as a tuple or a list.
widthProperty / wp unicode  
   

Derived from mel command maya.cmds.workspaceControl