Automatic browser file filters – Apple Shake 4 User Manual

Page 374

Advertising
background image

374

Chapter 14

Customizing Shake

kAnyIn: Directory of the last input directory of any type.

kAnyOut: Directory of the last output directory of any type.

kScriptIn: Directory of the last script input directory.

kScriptOut: Directory of the last script output directory.

kExprIn: Directory of the last expression input directory.

kExprOut: Directory of the last expression output directory.

Automatic Launching of the Browser When Creating a Node

In the ui directory:

nuiToolBoxItem(“ProxyFileIn”,

{{
const char *filename = getFileInName();
filename ? ProxyFileIn(filename,0,2) :
(image) 0
}}

);

In this example, the Browser is called for the parameter file name in the ProxyFileIn
macro. The macro has three parameters: Filename and two numbers (0 and 2). The
getFileInName function automatically launches the Browser when the user creates this
node in the interface. You can use:

getFileInName()

getFileOutName()

getScriptInName()

getScriptOutName()

Automatic Browser File Filters

In the ui directory:

gui.fileBrowser.lastImageRegexp = “*.tif” ;
gui.fileBrowser.lastScriptRegexp = “*.shk” ;
gui.fileBrowser.lastExprRegexp = “*.txt” ;
gui.fileBrowser.lastTrackerRegexp = “*.txt”;
gui.fileBrowser.lastAnyRegexp = “*”;

You can assign specific filters for the Browser for different types of Browser activity. For
example, if you only use Cineon files, you may want to use an assignment such as:

gui.fileBrowser.lastImageRegexp= “*.cin” ;

Advertising