pymel.core.windows.workspaceControlState¶
- workspaceControlState(*args, **kwargs)¶
Create or modify preferred window attributes for workspace controls. The size and position of a workspace control is retained during application sessions (although position only applies to workspace controls that are alone in a floating workspace docking panel). A default workspace control state is created when a workspace control is closed. Workspace control states must be named and, consequently, only affect the workspace control with a matching name. In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name Argument Types Properties exists / ex bool Returns true|false depending upon whether the specified object exists. Other flags are ignored. height / h int Height of the window. leftEdge / le int Left edge position of the window. maximized / max bool Maximize the window. remove / r bool Remove a window preference. topEdge / te int Top edge position of the window. topLeftCorner / tlc int, int Top and left edge position of the window. width / w int Width of the window. widthHeight / wh int, int Width and height of the window. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.workspaceControlState