Adobe AFTER EFFECTS 7.0 Manual page 583

Table of Contents

Advertisement

Retrieves the layer by name. Names are matched by layer name, or source name if there is no layer name. If duplicate
names exist, After Effects uses the first one in the Timeline panel. Example:
layer(otherLayer, relIndex)
Argument type: otherLayer is a Layer object, and relIndex is a Number.
Retrieves the layer that is relIndex layers above or below otherLayer. For example,
layer that is two layers higher in the Timeline panel than the layer on which the expression is written.
Return type: Number.
marker("name")
Argument type: name is a String.
Retrieves the time of a composition-time marker. For example, you can use this in an expression written on a layer's
opacity property to to fade out at the time where the marker resides:
markTime = t hisC omp.marker(1); line ar(t ime, markTime -.5, markTime, 100, 0)
Return type: Number.
numLayers
Returns the number of layers in the composition.
Return type: Camera.
activeCamera
Returns the Camera object for the camera through which the composition is rendered at the current frame. This is
not necessarily the camera through which you are looking in the Composition panel.
Return type: Number.
width
Returns the composition's width, in pixels.
Return type: Number.
height
Returns the composition's height, in pixels.
Return type: Number.
duration
Returns the composition's duration, in seconds.
Return type: Number.
displayStartTime
Returns the composition start time, in seconds.
Return type: Number.
frameDuration
Returns the frame duration, in seconds.
Return type: Number.
shutterAngle
Returns the shutter-angle value of the composition, in degrees.
Return type: Number.
shutterPhase
Returns the shutter-phase of the composition, in degrees.
Return type: Array [4].
bgColor
Returns the background color of the composition.
Return type: Number.
pixelAspect
Returns the pixel aspect ratio of the composition.
Return type: String.
name
Return type: Layer, Light, or Camera.
ADOBE AFTER EFFECTS 7.0
t hisC omp.layer("S ol id 1")
layer(t hisL ayer, -2)
577
User Guide
returns the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents