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 footage method, as in
footage("filename"),andthenuseanyoftheattributesbelow.Youcanalsoaccessafootageobjectusingthesource
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:
source.layer(1).position
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:
effect("Fast Blur")("Blurriness")
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:
mask("Mask 1")
mask(index) Return type: Mask.
Argument type: index is a Number.