Adobe AFTER EFFECTS CS3 PROFESSIONAL User Manual page 572

Hide thumbs Also See for AFTER EFFECTS CS3 PROFESSIONAL:
Table of Contents

Advertisement

idx = index;
if (hasParent) {
idx = parent.index;
}
thisComp.layer(idx).position.wiggle(5,20)
Return type: Number.
inPoint
Returns the In point of the layer, in seconds.
Note: In general, the value of
value of
is greater than the value of
inPoint
of
.
inPoint
Return type: Number.
outPoint
Returns the Out point of the layer, in seconds.
Return type: Number.
startTime
Returns the start time of the layer, in seconds.
Return type: Boolean.
hasVideo
Returns true if the layer has video, or false if it doesn't.
Return type: Boolean.
hasAudio
Returns true if the layer has audio or false if it doesn't.
Return type: Boolean.
active
Returns true if the layer's Video switch
false otherwise.
Return type: Boolean.
audioActive
Returns true if the layer's Audio switch
false otherwise.
sampleImage(point, radius = [.5, .5], postEffect=true, t=time)
Argument type: point is an Array [2], radius is an Array [2], postEffect is a Boolean, and t is a Number.
Samples the color and alpha channel values of a layer and returns the average alpha-weighted value of the pixels
within the specified distance of the point as an array: [red, green, blue, alpha]. If postEffect is true, the sampled values
are for the layer after masks and effects on that layer have been rendered; if postEffect is false, the sampled values are
for the layer before masks and effects have been rendered. The input value point is in layer space; the point [0,0] is
the center of the top-left pixel in the layer. The input value radius specifies the horizontal and vertical distance from
the sample center to the edges of the sampled rectangle. The default value samples one pixel.
This example samples a rectangle 4 pixels wide and 3 pixels high, centered around a point 100 pixels down and to
the right of the upper-left corner of the layer:
thisComp.layer(1).sampleImage([100, 100], [2, 1.5])
is greater than the value of
outPoint
. Similarly, the value of
outPoint
is on and the current time is between the layer's In point and Out point;
is on and the current time is between the layer's In point and Out point;
. However, if a layer is reversed in time, the
inPoint
can be greater than the value
startTime
Return type: Array [4].
AFTER EFFECTS CS3
566
User Guide

Advertisement

Table of Contents
loading

Table of Contents