This command creates, changes or removes custom curve colors, which are used to draw the curves in the Graph Editor. The custom curve names may contain the wildcards ”?”, which marches a single character, and “*”, which matches any number of characters. 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 | |
---|---|---|---|
hueSaturationValue (hsv) | bool | ||
|
|||
list (l) | bool | ||
|
|||
listNames (ln) | bool | ||
|
|||
remove (r) | bool | ||
|
|||
resetToFactory (rf) | bool | ||
|
|||
resetToSaved (rs) | bool | ||
|
Derived from mel command maya.cmds.curveRGBColor
Example:
import pymel.core as pm
# Set all "translateX" curves to draw magenta
pm.curveRGBColor( 'translateX', 1, 0, 1 )
# Set all curves whose names end in "Y" to draw yellow
pm.curveRGBColor( '*Y', 1, 1, 0 )
# Remove the custom color for "translateX" curves
# (which will revert to the standard UI color)
pm.curveRGBColor( r=True, 'translateX' )
# List the currently defined custom curve colors
pm.curveRGBColor( list=True )