ADOBE AFTER EFFECTS 7.0
User Guide
579
After Effects finds the mask by its index in the Timeline panel, starting at 1 and counting from the top.
Layer General attributes and methods
width Return type: Number.
Returns the width of the layer, in pixels. It is the same as
source.width.
height Return type: Number.
Returns the height of the layer, in pixels. It is the same as
source.height.
index Return type: Number.
Returns the index number of the layer in the composition.
parent Return type: Layer, Light, or Camera.
Returns the parent Layer object of the layer, if there is one. Example:
position[0] + parent.width
hasParent Return type: Boolean.
Returns true if the layer has a parent or false if it doesn’t.
inPoint Return type: Number.
Returns the In point of the layer, in seconds.
outPoint Return type: Number.
Returns the Out point of the layer, in seconds.
startTime Return type: Number.
Returns the start time of the layer, in seconds.
hasVideo Return type: Boolean.
Returns true if the layer has video, or false if it doesn’t.
hasAudio Return type: Boolean.
Returns true if the layer has audio or false if it doesn’t.
active Return type: Boolean.
Returns true if the layer’s video switch is on or false if it isn’t.
audioActive Return type: Boolean.
Returns a true value if the layer’s audio switch is on or a false if it isn’t.
Layer Properties attributes and methods
When you add masks, effects, paint, or text to a layer or apply motion tracker to it, After Effects adds new properties
to the Timeline panel. There are too many of these properties to list here, so use the pick whip to learn the syntax for
referring to them in your expressions. For any of the levels that represent groups of properties, you can use the
name
and numEntries propertiestoreturntheuser-specifiednameandthenumberofentriesinthegroup.Forexample,
text("Animators").numEntries returns the number of animators on your text layer.
anchorPoint Return type: Property [2 or 3].
Returns the anchor point value of the layer in the layer’s space.