beautypg.com

Adobe After Effects User Manual

Page 692

background image

height

duration

frameDuration

ntscDropFrame

pixelAspect

name

To the top

Note:

source

sourceTime(t = time)

effect(name)

effect(index)

mask(name)

mask(index)

Returns the width of the footage item, in pixels.

Return type: Number.

Returns the height of the footage item, in pixels.

Return type: Number.

Returns the duration of the footage item, in seconds.

Return type: Number.

Returns the duration of a frame in the footage item, in seconds.

Return type: Boolean.

Returns true if the timecode is in drop-frame format. (After Effects CS5.5 and later.)

Return type: Number.

Returns the pixel aspect ratio of the footage item.

Return type: String.

Returns the name of the footage item as shown in the Project panel.

Layer Sub-objects attributes and methods (expression reference)

For After Effects CC and CS6, the Expression language menu, the "Layer Sub-objects", "Layer General", "Layer Properties", "Layer 3D",

and "Layer Space Transforms" have been arranged into a "Layer" submenu.

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

Return type: Number.

Returns the layer source corresponding to time t. (After Effects CS5.5 and later.)

Return type: Effect.

Argument type: name is a String.

After Effects finds the effect by its name in the Effect Controls panel. The name can be the default name or a user-defined name. If multiple
effects have the same name, the effect closest to the top of the Effect Controls panel is used. Example:

effect("Fast Blur")("Blurriness")

Return type: Effect.

Argument type: index is a Number.

After Effects finds the effect by its index in the Effect Controls panel, starting at 1 and counting from the top.

Return type: Mask.

Argument type: name is a String.

The name can be the default name or a user-defined name. If multiple masks have the same name, the first (topmost) mask is used. Example:

mask("Mask 1")

Return type: Mask.

Argument type: index is a Number.

After Effects finds the mask by its index in the Timeline panel, starting at 1 and counting from the top.

688

This manual is related to the following products: