pymel.core.general.colorIndex

colorIndex(*args, **kwargs)

The index specifies a color index in the color palette. The r, g, and b values (between 0-1) specify the RGB values (or the HSV values if the -hsv flag is used) for the color.

Flags:
  • hueSaturationValue : hsv (bool) [create,query]

    Indicates that rgb values are really hsv values. Upon query, returns the HSV valuses as an array of 3 floats. Flag can have multiple arguments, passed either as a tuple or a list.

  • resetToFactory : rf (bool) [create]

    Resets all color index palette entries to their factory defaults.

  • resetToSaved : rs (bool) [create]

    Resets all color palette entries to their saved values.

Derived from mel command maya.cmds.colorIndex

Previous topic

pymel.core.general.color

Next topic

pymel.core.general.commandEcho

Core

Core Modules

Other Modules

This Page