Skip to content

imageSequenceFrameIndex

imageSequenceFrameIndex(sequence, itemTimeUs): number | undefined

Defined in: packages/project-schema/src/image-sequence.ts:11

Map an item time to the image-sequence frame whose interval contains it.

Frames are uniform-duration and contiguous starting at zero. The mapping is deterministic and integer-based so preview and export agree on every frame boundary. Returns undefined when itemTimeUs is negative or at/after the last frame boundary, which callers must treat as fail-closed.

ImageSequenceReference

number

number | undefined