Apple Shake 4 User Manual

Page 543

Advertising
background image

Chapter 19

Using Masks

543

Because of the labeling, you can do multiple types of constraining in the script by
adding the numbers together. For example, 7 = AOI (1) + Threshold (2) + Channel (4); in
other words, AOI, Threshold, and Channel are all active.

AOI Controls
These are active only if the type parameter is set to 1. (See “type,” above.) They describe
a cropping box for the effect. Opening this parameter reveals left, right, bottom, and
top subparameters.

rTol
If the type parameter is set to 2, the red color channel tolerance. If pixels between the
two images are less than the Tolerance value, they are considered common.

gTol
If the type parameter is set to 2, the green color channel tolerance. If pixels between
the two images are less than the Tolerance value, they are considered common.

bTol
If the type parameter is set to 2, the blue color channel tolerance. If pixels between the
two images are less than the Tolerance value, they are considered common.

aTol
If the type parameter is set to 2, the alpha channel tolerance. If pixels between the two
images are less than the Tolerance value, they are considered common.

thresholdType
Active only when the type parameter is equal to 2. This sets the Tolerance to “lo” or “hi.”

0 = “lo.” Changes are made only if the difference between image1 and image2 is less
than the Tolerance values you set.

1 = “hi.” Changes are made only if the difference between image1 and image2 is
greater than the Tolerance values.

tReplace
Active when the type parameter is set to 2. Toggles whether the entire pixel is replaced,
or just the channel meeting the Tolerance criteria.

Channel and Field Controls
Opening this parameter reveals two subparameters.

channels: If the type parameter is set to 4 (see “type,” above), the operation only
applies to the specified channels.

field: If the type parameter is set to 8 (see “type,” above), effect only applies to one
field.

0 = even field

1 = odd field

Advertising