This command changes or queries the display color for anything in the application that allows the user to set its color. These colors are part of the UI and not part of the saved data for a model. This command is not undoable.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
create (c) | bool | ||
|
|||
hueSaturationValue (hsv) | bool | ||
Indicates that rgb values are really hsv values. Upon query, returns the HSV valuses as an array of 3 floats. r g b The RGB values for the color. (Between 0-1)Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
list (l) | bool | ||
|
|||
resetToFactory (rf) | bool | ||
|
|||
resetToSaved (rs) | bool | ||
|
Derived from mel command maya.cmds.displayRGBColor
Example:
import pymel.core as pm
import maya.cmds as cmds
# Set the background colour to red
pm.displayRGBColor( 'background', 1, 0, 0 )
# List the current RGB color settings
pm.displayRGBColor( list=True )