User Guide

331
ADOBE AFTER EFFECTS 5.0
User Guide
Boolean active Returns a true value (1) if the layer’s video switch ( )is on, or a false (0) if
it isn’t.
Boolean audio_active Returns a true value (1) if the layer’s audio switch ( ) is on, or a
false (0) if it isn’t.
Number index Returns the Number of the layer in the composition.
Layer, Light, or Camera parent Returns the parent Layer object of the layer, if there is one.
For example, “position[0] + parent.width.
Property [2 or 3] anchor_point Returns the Anchor Point value of the layer in the layer’s
space.
Property [2 or 3] scale Returns the Scale value of the layer, expressed as a percentage.
Property [2 or 3] position Returns the Position value of the layer, in world space if the layer
has no parent, or in the parent’s layer space if there is a parent.
Property rotation Returns the Rotation value of the layer in degrees. For a 3D layer, it
returns the Z rotation value in degrees.
Property [1] rotationX Returns the X Rotation value in degrees for a 3D layer.
Property [1] rotationY Returns the Y Rotation value in degrees for a 3D layer.
Property [1] rotationZ Returns the Z Rotation value in degrees for a 3D layer.
Property [3] orientation Returns the 3D Orientation value in degrees for a 3D layer.
Property [1] opacity Returns the Opacity value for the layer, expressed as a percentage.
Property [2] audio_levels Returns the Audio Level of the layer, in decibels. This is a 2D
value; the first value represents the left audio channel, and the second value represents the
right. The value is not the amplitude of the source material’s audio track; instead, it is the
value of the keyframed Audio Levels property.
Property time_remap Returns the value of the Time Remap property in seconds, if Time
Remap is enabled.
Comp or Footage source Returns the source Comp or source Footage object for the layer.
Default time is adjusted to the time in the source. For example, “source.layer(1).position.
Mask mask(index) {index is a number} Returns a layer Mask object. After Effects finds the
mask by its index in the Timeline window, starting at 1 and counting down from the top.
UG.book Page 331 Wednesday, February 21, 2001 12:05 PM