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

Synopsis

curveRGBColor [-hueSaturationValue] [-list] [-listNames] [-remove] [-resetToFactory] [-resetToSaved]

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

float[]

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

Related

displayRGBColor

Flags

hueSaturationValue, list, listNames, remove, resetToFactory, resetToSaved
Long name (short name) Argument types Properties
-list(-l) create
Writes out a list of all curve color names and their values.
-listNames(-ln) create
Returns an array of all curve color names.
-resetToFactory(-rf) create
Resets all the curve colors to their factory defaults.
-resetToSaved(-rs) create
Resets all the curve colors to their saved values.
-remove(-r) create
Removes the named curve color.
-hueSaturationValue(-hsv) 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 be used more than once in a command.

MEL examples

// Set all "translateX" curves to draw magenta
curveRGBColor "translateX" 1 0 1;

// Set all curves whose names end in "Y" to draw yellow
curveRGBColor "*Y" 1 1 0;

// Remove the custom color for "translateX" curves
// (which will revert to the standard UI color)
curveRGBColor -r "translateX";

// List the currently defined custom curve colors
curveRGBColor -list;