nearestKeyIndex()

app.project.item(index).layer(index).propertySpec.nearestKeyIndex(time)

Description

Returns the index of the keyframe nearest to the specified time.

Parameters

time The time in seconds; a floating-point value. The beginning of the composition is 0.

Returns

Integer.

Other Tags

Posted in Property object and tagged , , , , , , , .