The -mask/mask node – Apple Shake 4 User Manual

Page 540

Advertising
background image

540

Chapter 19

Using Masks

6

In the Blur parameters, set the xPixels and yPixels value to 200.

The result looks bad, rather like the following. Notice that the right side of the image
merely mixes the completely blurred image with the non-blurred image.

7

Select the Blur node, and Control-click Filter–IBlur.

The Blur node is replaced with the IBlur node.

8

Disconnect the Ramp from the blur node’s M input, and connect it to the IBlur node’s
second image input.

9

In the IBlur parameters, set the xPixels and yPixels value to 200.

The result is much nicer—the right side is blurred to 200 pixels, the middle is blurred to
100 pixels, and the left edge has no blur at all.

The -mask/Mask Node

This node is only used in the script, but is created invisibly whenever you insert a side-
input mask. The Mask node masks out the previous operation (in command-line mode)
or a node that you specify when in scripting mode. This is how the interface interaction
of setting a mask is saved in script form. For more information, see “

About Masks

” on

page 527.

Parameters

Type

Defaults

Description

mask

image

The image to be used as a mask on the result
of the first input image.

maskChannel

string

“a”

The channel of the mask image to be used as
the mask.

Advertising