
ADOBE AFTER EFFECTS 7.0
User Guide
578
Returns the name of the composition.
Footage attributes and methods
To use footage from the Project panel as an object in an expression, use the global
fo ot age
method, as in
fo ot a ge ( " f i l e n am e " )
, and then use any of the attributes below. You can also access a footage object using the
s ou rc e
attribute on a layer whose source is a footage item.
width
Return type: Number.
Returns the width of the footage, in pixels.
height
Return type: Number.
Returns the height of the footage, in pixels.
duration
Return type: Number.
Returns the duration of the footage, in seconds.
frameDuration
Return type: Number.
Returns the duration of a frame, in seconds.
pixelAspect
Return type: Number.
Returns the pixel aspect ratio of the footage.
name
Return type: String.
Returns the name of the footage.
Layer subobjects attributes and methods
source
Return type: Comp or Footage.
Returns the source Comp or source Footage object for the layer. Default time is adjusted to the time in the source.
Example:
s ou rc e. l aye r ( 1 ) . p o s it i on
effect(name)
Return type: Effect.
Argument type:
name
is a String.
After Effects finds the effect by its name in Effect Controls. The name can be the default name or a user-defined
name. If there is more than one effect with the same name, the effect closest to the top of Effect Controls is used.
Example:
e f fe c t ( " Fa st Blu r " ) ( " Blu r r i n e ss " )
effect(index)
Return type: Effect.
Argument type:
index
is a Number.
After Effects finds the effect by its index in Effect Controls, starting at 1 and counting down from the top.
mask(name)
Return type: Mask.
Argument type:
name
is a String.
The name can be the default name or a user-defined name. Example:
m a s k ( " Ma s k 1 " )
mask(index)
Return type: Mask.
Argument type:
index
is a Number.
Summary of Contents for AFTER EFFECTS 7.0
Page 1: ...Chapter 1 User Guide...