beautypg.com

Standard script commands and variables – Apple Shake 4 User Manual

Page 928

background image

928

Chapter 30

Installing and Creating Macros

);
Select1 = Select(keepAspect+1, Resize1, SetBGColor1, 0, 0);

return Select1;

}

3

Save the file and start Shake again.

The pop-up menu appears in the parameters.

You can alternatively avoid the use of the if/else statement and use something similar
to what you had before:

curve int yRes = vidFormat==“NTSC”?486:576;

The reason the if/else is used is that you usually have multiple entries on your pop-up
menu, and the conditional expression gets a bit unwieldy, so it’s better to create a long
if/else statement. It’s unwieldy and long, like that run-on sentence.

Standard Script Commands and Variables

The following tables include the standard script commands and variables.

Standard Script Commands

Script Controls

Command-Line Equivalent

Description

SetTimeRange(“1-100”);

-t 1-100

The time range, for example,
frames 1-200. Note this is always
in quotes.

SetFieldRendering(1):

-fldr 1

Field Rendering.

0 = off

1 = odd - PAL

2 = even - NTSC

SetFps(24);

-fps 24

Frames per second.

SetMotionBlur(1, 1,0);

-motion 1 1 , -shutter 1

1

Your three global motion blur
parameters.

SetQuality(1);

-fast 0 or 1

Low (0) or high (1) quality.

SetProxyFilter(“default”);

-proxyfilter

The default filter, taken from the

Filters Within Transform Nodes

on page 862.

SetProxyScale(1,1);

-proxyscale 1 1

Proxy scale and ratio for the
script. See Chapter 4, “

Using

Proxies

,” on page 137.