sourceRectAtTime()

app.project.item(index).layer(index).sourceRectAtTime(timeT,extents)

Description

Retrieves the rectangle bounds of the layer at the specified time index, corrected for text or shape layer content.
Use, for example, to write text that is properly aligned to the baseline.

Parameters

time T The time index, in seconds. A floating-point value.
extent s Tru e to include the extents, fa ls e otherwise. Extents apply to shape layers, increasing the size of the layer bounds as necessary.

Returns

A JavaScript object with four attributes, [top, left, width, height].

Other Tags

Posted in AVLayer object and tagged , , , , , , , , , , , , , .