beautypg.com

Adobe After Effects User Manual

Page 691

background image

numLayers

activeCamera

width

height

duration

ntscDropFrame

displayStartTime

frameDuration

shutterAngle

shutterPhase

bgColor

pixelAspect

name

To the top

width

Returns the total number of composition markers in the composition.

Return type: Number.

Returns the number of layers in the composition.

Return type: Camera.

Returns the Camera object for the camera through which the composition is rendered at the current frame. This camera is not necessarily the
camera through which you are looking in the Composition panel.

Return type: Number.

Returns the composition width, in pixels.

Apply the following expression to the Position property of a layer to center the layer in the composition frame:

[thisComp.width/2, thisComp.height/2]

Return type: Number.

Returns the composition height, in pixels.

Return type: Number.

Returns the composition duration, in seconds.

Return type: Boolean.

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

Return type: Number.

Returns the composition start time, in seconds.

Return type: Number.

Returns the duration of a frame, in seconds.

Return type: Number.

Returns the shutter-angle value of the composition, in degrees.

Return type: Number.

Returns the shutter phase of the composition, in degrees.

Return type: Array [4].

Returns the background color of the composition.

Return type: Number.

Returns the pixel aspect ratio of the composition.

Return type: String.

Returns the name of the composition.

Footage attributes and methods (expression reference)

To use a footage item from the Project panel as an object in an expression, use the global footage method, as in footage("file_name").

You can also access a footage object using the source attribute on a layer whose source is a footage item.

Return type: Number.

687

This manual is related to the following products: