This command changes or queries the display color for anything in the application that allows the user to set its color. The color is defined by a color index into either the dormant or active color palette. These colors are part of the UI and not part of the saved data for a model. This command is not undoable. In query mode, return type is based on queried flag.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| active (a) | bool |
|
|
|
|||
| create (c) | bool |
|
|
|
|||
| dormant (d) | bool |
|
|
|
|||
| list (l) | bool |
|
|
|
|||
| queryIndex (qi) | int |
|
|
Allows you to obtain a list of color names with the given color indices. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
| resetToFactory (rf) | bool |
|
|
|
|||
| resetToSaved (rs) | bool |
|
|
|
|||
Derived from mel command maya.cmds.displayColor
Example:
import pymel.core as pm
pm.displayColor( 'grid', 15, dormant=True )
pm.displayColor( 'grid', q=True, dormant=True )
pm.displayColor( list=True )
pm.displayColor( resetToFactory=True )
pm.displayColor( queryIndex=15 )