Apple Shake 4 User Manual

Page 145

Advertising
background image

Chapter 4

Using Proxies

145

When an SFileIn node is created, three pieces of information are taken from the File
Browser:

The file name

The proxy level that corresponds to this file name (Base, P1, P2, or P3)

The set of images to use for that proxy level

The chosen file name appears in the FileIn node’s proxy1File parameter, and the
settings for the selected proxy level from the selected proxy set are used to set the
other subparameters of the fields.

Next, the remaining proxy set paths defined in the proxy set are filled into the
remaining proxyNWhatever fields in the SFileIn node, with path modifications and
substitutions made as defined in the DefProxyPath or DefBasePath statements for the
proxy set.

The SFileIn node’s parameters are set via the values, modifications, and substitutions
defined in the proxy set, in much the same way that a Grad node takes its initial width
and height parameter values from the current defaultWidth and defaultHeight values
in the format subtree of the Globals tab.

.h File Syntax for Custom Proxy Sets

The syntax for defining proxy sets is as follows:

DefProxyGroup(“proxySet”,

DefBasePath(

“baseDefaultFile”,

“baseDefaultFileType”,

defauktAlwaysAdd,

“baseDefaultReplace”),

DefineProxyPath(

const char *proxyPath=“../proxy.50/<base>.<format>”,
float scale=.5,

float aspect=1,

int bytes=GetDefaultBytes(),

const char *fileFormat=“Auto”,
int render=0,
int alwaysAdd = 1,
int index =1,
string substitionString

);

Advertising