Apple Shake 4 User Manual

Page 956

Advertising
background image

956

Chapter 31

Expressions and Scripting

The result appears as follows in the interface:

Only four parameters are entered for the Mult node—the alpha and depth parameters
are omitted. Therefore, the alpha and depth parameters default to a value of 1. You can
also see that Mult looks for two types of data: An image (labeled In) and floats (labeled
red, green, blue, and so on.). A float is any number that contains a decimal place, for
example, 1.2, 10.00, .00001, or 100,000.00. The following table lists the five types of data.

Shake is usually smart enough to convert an integer into a float, so when the following
is entered:

MaryAnn = Mult(Lovey, 1, 1, .2);

Shake does not freak out that you enter two integers (1, 1) for the red and green
multipliers. However, this is an infrequent case concerning the conversion of floats and
integers, as you cannot put in a string or an image for those arguments. For example:

MaryAnn = Mult(Lovey,“1”, Gilligan, .2);

Data Type

Description

image

An image.

float

A number with a decimal place, such as .001, 1.01, or 10,000.00.

int

Integer. A number with no decimal place, such as 0, 1, or 10,000.

string

“this is a string”

curve float or curve int

A special case of float or int that designates that the number has
the possibility of being changed during script execution or when
tuning it in the interface.

Advertising