pymel.core.animation.curveRGBColor

static animation.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 ../../../_images/create.gif ../../../_images/query.gif
 
Indicates that rgb values are really hsv values. Flag can have multiple arguments, passed either as a tuple or a list.
list (l) bool ../../../_images/create.gif
 
Writes out a list of all curve color names and their values.
listNames (ln) bool ../../../_images/create.gif
 
Returns an array of all curve color names.
remove (r) bool ../../../_images/create.gif
 
Removes the named curve color.
resetToFactory (rf) bool ../../../_images/create.gif
 
Resets all the curve colors to their factory defaults.
resetToSaved (rs) bool ../../../_images/create.gif
 
Resets all the curve colors to their saved values.

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 )

Previous topic

pymel.core.animation.currentTime

Next topic

pymel.core.animation.cutKey

Core

Core Modules

Other Modules

This Page