Defining custom default palette colors – Apple Shake 4 User Manual

Page 624

Advertising
background image

624

Chapter 23

Color Correction

You can also choose or adjust colors numerically in the Color Picker by manipulating
the values of each individual channel.

To read different color channels for a node, do one of the following:

m

Open the ColorValues subtree, then open one of the color space subtrees.

Use the sliders to adjust colors based on individual channels from the RGB, HSV, CMYK,
and HLS color space models.

m

Open the Values subtree.

Defining Custom Default Palette Colors

If you want to change the default Palette colors that Shake starts with, add the
following declaration to a .h file in the ui directory:

nuiSetColor(1,1,0,0);
nuiSetColor(2,1,0.5,0);
nuiSetColor(3,1,1,0);
etc...

The syntax is:

nuiSetColor(swatchNumber, redValue, greenValue, blueValue);

The first value is the swatch position in the Palette (swatchNumber) from left to right
starting with the top line, and the next three values are the red, green, and blue
values designating the color you want in RGB space.

Advertising