Adding functions into a menu, Opening scripts with missing macros, The curve editor and time bar – Apple Shake 4 User Manual

Page 370: Linking an html help page to a custom node

Advertising
background image

370

Chapter 14

Customizing Shake

Adding Functions Into a Menu

In the ui directory:

nuiOpenMenu(“Render”);
nuiMenuSeparator();
nuiMenuItem(

“Highend2D”,
LaunchBrowser(

“http://www.highend2d.com”,1

)

);
nuiPopMenu();

This creates an entry in the Render menu, split from the other entries by a separator.

Opening Scripts With Missing Macros

If you open a Shake script that contains one or more macros that you do not have on
your system, you have the option to load the script using a substitute node, or to not
load the script at all using the macroCheck parameter in the renderControls subtree of
the Globals tab. To set the default macroCheck behavior to substitute a MissingMacro
node, include the following in a .h file:

sys.useAltOnMissingFunc = 2

For information on the macroCheck parameter, see “

renderControls

” on page 96.

Linking an HTML Help Page to a Custom Node

To link a node’s HTML Help button to your own custom page, enter the following line
into its ui.h file:

nuiRegisterNodeHelpURL ("MyCustomFunction", "http://www.apple.com/
shake/");

The Curve Editor and Time Bar

The following settings let you customize the Time Bar.

Advertising