Layer General Attributes And Methods; Layer Properties Attributes And Methods - Adobe AFTER EFFECTS 7.0 Manual

Table of Contents

Advertisement

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

Return type: Number.
width
Returns the width of the layer, in pixels. It is the same as
Return type: Number.
height
Returns the height of the layer, in pixels. It is the same as
Return type: Number.
index
Returns the index number of the layer in the composition.
Return type: Layer, Light, or Camera.
parent
Returns the parent Layer object of the layer, if there is one. Example:
Return type: Boolean.
hasParent
Returns true if the layer has a parent or false if it doesn't.
Return type: Number.
inPoint
Returns the In point of the layer, in seconds.
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
Return type: Boolean.
audioActive
Returns a true value if the layer's audio switch

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
and
properties to return the user-specified name and the number of entries in the group. For example,
numEnt r ies
text("Animators").numEnt r ies
Return type: Property [2 or 3].
anchorPoint
Returns the anchor point value of the layer in the layer's space.
s ourc e. w i dt h
s ou rc e. he i g ht
is on or false if it isn't.
is on or a false if it isn't.
returns the number of animators on your text layer.
.
.
p os it i on [ 0 ] + p arent . w i dt h
ADOBE AFTER EFFECTS 7.0
579
User Guide
name

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents