Go to: Synopsis. Return value. Flags. MEL examples.
colorIndex [-hueSaturationValue] [-resetToFactory] [-resetToSaved]
int [float float float]
colorIndex is undoable, queryable, and NOT editable.
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.
| int | Returns 1 on success. |
In query mode, return type is based on queried flag.
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
-hueSaturationValue(-hsv)
|
|
|
||
|
||||
-resetToFactory(-rf)
|
|
|
||
|
||||
-resetToSaved(-rs)
|
|
|
||
|
||||
// Set the first entry in the color palette to have RGB values 1 0 0 - red. colorIndex 1 1 0 0; // Set the first entry in the color palette to have HSV values 360 1 1 - red. colorIndex -hsv 1 360 0 0; // Return the RGB color values of the first entry of the color palette. colorIndex -q 1; // Return the HSV color values of the first entry of the color palette. colorIndex -q -hsv 1;