Troubleshooting preference files, Customizing interface controls in shake, Color settings for various interface items – Apple Shake 4 User Manual

Page 359

Advertising
background image

Chapter 14

Customizing Shake

359

Troubleshooting Preference Files

If your custom preference files do not appear to be working, check the following:

Does the file have a .h extension?

Is the file in a startup directory in one of the three possible locations (as described
above)?

If using a tcsh, and the file is in what you think is the NR_INCLUDE_PATH, is
NR_INCLUDE_PATH actually set for that window? To test this, type the following in a
tcsh window:

echo $NR_INCLUDE_PATH

Have you checked the text window from which you launched Shake? This is where
syntax problems are shown.

Customizing Interface Controls in Shake

Two forward slashes (//) indicate that a line is commented out and inactive.

Color Settings for Various Interface Items

The following settings let you customize the colors of different interface controls.

Setting Tab Colors

In the ui directory:

nuiPushToolBox(“Image”);
nuiSetObjectColor(“ImageToolBox”,

tabRed, tabGreen, tabBlue,
textRed, textGreen, textBlue);

nuiPopToolBox();

This is an excerpt from the include/nrui.h file. The Image tab is opened and assigned a
color for both the tab and the text on the tab. Instead of numbers for the color values,
variables are used here to indicate the parameter. Search for the variable names above
or enter your own explicit values. Doing this does not automatically assign color to
nodes within the tab.

Advertising