Interface

UseTimelineKeyframesResult

Result returned by `useTimelineKeyframes`.

Usage notes

The result combines settled keyframe lists, selection, and mutation commands. Use it for keyframe inspectors, property editors, and toolbar actions. For pointer-driven dragging, combine it with useTimelineKeyframeDrag; for Bezier easing handles, combine it with useTimelineKeyframeTangentDrag.

Signature

Type Definition
Interface UseTimelineKeyframesResult

Properties

NameSignatureDescription
clearKeyframeSelection(): TimelineCommandResultClears keyframe selection.
copyKeyframes(): TimelineKeyframeClipboardCopies the current selection independently of clip copy/paste.
createPasteCommand(clipboard: TimelineKeyframeClipboard, time: RationalTime, clipId?: string): TimelineKeyframeEditCommandCreates a paste command with preserved relative timing.
getPropertyValueAtTime(clipId: string, property: string, time?: RationalTime): number | undefinedEvaluates a keyframed property at a timeline time.
keyframeskeyframes: TimelineKeyframe[]Settled keyframes matching the clip, property, and selection filters.
removeKeyframe(clipId: string, keyframeId: string, options?: TimelineKeyframeMutationOptions): TimelineCommandResult<TimelineKeyframe>Removes one keyframe from a clip.
selectedKeyframesselectedKeyframes: TimelineKeyframeReference[]Selected keys across all clips.
selectKeyframes(references: typeOperator, mode?: "toggle" | "replace" | "add"): TimelineCommandResultSelects keys without subscribing to live geometry.
setKeyframe(input: TimelineSetClipKeyframeOptions, options?: TimelineKeyframeMutationOptions): TimelineCommandResult<TimelineKeyframe>Adds or updates one keyframe by clip, property, and exact timeline time.
updateKeyframe(input: TimelineUpdateClipKeyframeOptions, options?: TimelineKeyframeMutationOptions): TimelineCommandResult<TimelineKeyframe>Updates one existing keyframe.