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.

width
Return type: Number.

Returns the width of the footage item, in pixels.

height
Return type: Number.

Returns the height of the footage item, in pixels.

duration
Return type: Number.

Returns the duration of the footage item, in seconds.

frameDuration
Return type: Number.

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

pixelAspect
Return type: Number.

Returns the pixel aspect ratio of the footage item.

name
Return type: String.

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