Go to: Synopsis. Return value. Related. Flags. Python examples.


curveRGBColor([hueSaturationValue=boolean], [list=boolean], [listNames=boolean], [remove=boolean], [resetToFactory=boolean], [resetToSaved=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

curveRGBColor is undoable, queryable, and NOT editable.

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.

Return value


In query mode, return type is based on queried flag.




hueSaturationValue, list, listNames, remove, resetToFactory, resetToSaved
Long name (short name) Argument types Properties
list(l) boolean create
Writes out a list of all curve color names and their values.
listNames(ln) boolean create
Returns an array of all curve color names.
resetToFactory(rf) boolean create
Resets all the curve colors to their factory defaults.
resetToSaved(rs) boolean create
Resets all the curve colors to their saved values.
remove(r) boolean create
Removes the named curve color.
hueSaturationValue(hsv) boolean createquery
Indicates that rgb values are really hsv values.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Set all "translateX" curves to draw magenta
cmds.curveRGBColor( 'translateX', 1, 0, 1 )

# Set all curves whose names end in "Y" to draw yellow
cmds.curveRGBColor( '*Y', 1, 1, 0 )

# Remove the custom color for "translateX" curves
# (which will revert to the standard UI color)
cmds.curveRGBColor( r=True, 'translateX' )

# List the currently defined custom curve colors
cmds.curveRGBColor( list=True )