pymel.core.general.curveRGBColor¶
- curveRGBColor(*args, **kwargs)¶
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.
Flags:
Long Name / Short Name Argument Types Properties hueSaturationValue / hsv bool Indicates that rgb values are really hsv values. list / l bool Writes out a list of all curve color names and their values. listNames / ln bool Returns an array of all curve color names. remove / r bool Removes the named curve color. resetToFactory / rf bool Resets all the curve colors to their factory defaults. resetToSaved / rs bool Resets all the curve colors to their saved values. Flag can have multiple arguments, passed either as a tuple or a list. 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 )