Assigning a browser pop-up menu to a parameter – Apple Shake 4 User Manual

Page 373

Advertising
background image

Chapter 14

Customizing Shake

373

All directories assigned here appear in your Favorites area of the Directories pop-up
menu in the Browser.

To also bookmark a directory in the Browser, click the Bookmark button and then
choose File > Save Interface Settings. This saves a setting in your $HOME/nreal/settings
directory.

Assigning a Browser Pop-Up Menu to a Parameter

In the ui directory:

nuxDefBrowseControl(

“Macro.imageName”,
kImageIn

);
nuxDefBrowseControl(

“Macro.imageName”,
kImageOut

);
nuxDefBrowseControl(

“Macro.fileName”,
kAnyIn

);
nuxDefBrowseControl(

“Macro.lookupFile”,
kExprIn

);
nuxDefBrowseControl(

“Macro.scriptName”,
kScriptIn

);
nuxDefBrowseControl(

“Macro.renderPath”,
kAnyOut

);

This assigns a folder button to a string so that you can relaunch the File Browser. The
Browser remembers the last directories you used for any different type, so you can assign
the type of file the Browser should look for as well with kImageIn/Out, and so on. For
example, if you have a macro that browses an image to be read in, use kImageIn, so when
you click that button, it jumps to the last directory from which you read in an image.

kImageIn: Directory of the last image input directory.

kImageOut: Directory of the last image output directory.

Advertising