Apple Shake 4 User Manual

Page 541

Advertising
background image

Chapter 19

Using Masks

541

Synopsis

Mask(

image,
image mask,
const char * maskChannel,
float percent,
int invertKey,
int enableKey

);

Script

image = Mask(

image,
mask,
“maskChannel”,
percent,
invertKey,
enableKey

);

Command Line
shake -mask image maskChannel percent...

percent

float

100

A gain control applied to the maskChannel.

100 percent is full brightness.

50 percent is half brightness.

200 percent is twice as bright, and so on.

invertKey

int

0

A switch to invert the maskChannel.

0 = do not invert

1 = invert

enableKey

int

1

A switch to turn the key on and off.

0 = off

1 = on

Parameters

Type

Defaults

Description

Advertising