This command creates a panel configuration object. Typically you would not call this method command directly. Instead use the Panel Editor. Once a panel configuration is created you can make it appear in the main Maya window by selecting it from any panel’s “Panels-Saved Layouts” menu.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
addPanel (ap) | bool, unicode, unicode, unicode, unicode | ||
|
|||
configString (cfs) | unicode | ||
|
|||
createStrings (cs) | bool | ||
|
|||
defaultImage (di) | unicode | ||
The default image for this configuration. Once the default image is set it may not be changed. If an image is set with the -i/imageflag then it’s value will take precedence. |
|||
defineTemplate (dt) | unicode | ||
Puts a 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. |
|||
editStrings (es) | bool | ||
|
|||
exists (ex) | bool | ||
|
|||
image (i) | unicode | ||
|
|||
isFixedState (isFixedState) | bool | ||
|
|||
label (l) | unicode | ||
|
|||
labelStrings (ls) | bool | ||
|
|||
numberOfPanels (np) | bool | ||
|
|||
removeAllPanels (rap) | bool | ||
|
|||
removeLastPanel (rlp) | bool | ||
|
|||
replaceCreateString (rcs) | int, unicode | ||
|
|||
replaceEditString (res) | int, unicode | ||
|
|||
replaceFixedState (rfs) | int, bool | ||
|
|||
replaceLabel (rl) | int, unicode | ||
|
|||
replacePanel (rp) | int, bool, unicode, unicode, unicode, unicode | ||
|
|||
replaceTypeString (rts) | int, unicode | ||
|
|||
sceneConfig (sc) | bool | ||
|
|||
typeStrings (ts) | bool | ||
|
|||
useTemplate (ut) | unicode | ||
|
Derived from mel command maya.cmds.panelConfiguration
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a custom panel configuration.
#
configName = pm.panelConfiguration(
label="Custom Panel Layout",
sceneConfig=False,
configString="paneLayout -e -cn \"vertical2\" -ps 1 39 100 -ps 2 61 100 $gMainPane;",
addPanel=[
(False,
'Outliner',
'outlinerPanel',
("{global int $gUseMenusInPanels;\
$panelName = `outlinerPanel -mbv $gUseMenusInPanels -unParent -l \"Outliner\"`;\
outlinerEditor -e -highlightActive true $panelName;}"),
"outlinerPanel -edit -l \"Outliner\" $panelName"),
(True,
"Persp View",
"modelPanel",
("{global int $gUseMenusInPanels;\
modelPanel -mbv $gUseMenusInPanels\
-unParent -l \"Persp View\" -cam persp;}" ),
"modelPanel -edit -l \"Persp View\" -cam \"persp\" $panelName")
]
)
# Update the main Maya window to reflect the custom panel configuration.
# Note also that your custom configuration may be selected from any
# panel's "Panels-"Saved Layouts" menu.
#
maya.mel.eval('setNamedPanelLayout( "Custom Panel Layout" )')