Interface

UseTimelineTracksResult

Result returned by `useTimelineTracks`.

Usage notes

Use this result for track lists, timeline sidebars, source-bin filters, and command bars that need to inspect or mutate the ordered track collection. For one row's DOM-ready state, use useTimelineTrack or useTimelineTrackHeader instead.

Signature

Type Definition
Interface UseTimelineTracksResult

Properties

NameSignatureDescription
addTrack(track: Track): TimelineCommandResultAdds a track with owned, validated clip data.
hiddenTrackshiddenTracks: object[]Tracks currently hidden from active layer and media lookup.
moveTrack(trackId: string, toIndex: number): TimelineCommandResultMoves a track to its final zero-based row index.
removeTrack(trackId: string): TimelineCommandResultRemoves a track.
renameTrack(trackId: string, name: string | undefined): TimelineCommandResultRenames a track, or clears its app-defined name.
selectedTrackselectedTrack: object | nullCurrently selected track, or null when no track is selected.
selectTrack(trackId: string | null): TimelineCommandResultSelects a track or clears track selection.
setCollapsed(trackId: string, collapsed: boolean): TimelineCommandResultSets row collapse while preserving expanded height and media visibility.
setLocked(trackId: string, locked: boolean): TimelineCommandResultSets the edit lock explicitly.
setMuted(trackId: string, muted: boolean): TimelineCommandResultSets track mute explicitly.
setTrackGroup(trackId: string, groupId: string | undefined): TimelineCommandResultSets or clears a track's group.
setTrackHeight(trackId: string, height: number): TimelineCommandResultSets expanded row height.
setTrackTarget(trackId: string, targeted: boolean): TimelineCommandResultSets edit targeting explicitly.
setVisible(trackId: string, visible: boolean): TimelineCommandResultSets track output visibility explicitly.
targetedTrackstargetedTracks: object[]Tracks currently targeted for edit operations.
toggleCollapse(trackId: string): TimelineCommandResultToggles row collapse using the current track state.
toggleLock(trackId: string): TimelineCommandResultToggles the edit lock.
toggleMute(trackId: string): TimelineCommandResultToggles track mute.
toggleTrackTarget(trackId: string): TimelineCommandResultToggles edit targeting.
toggleVisibility(trackId: string): TimelineCommandResultToggles track output visibility.
trackstracks: typeOperatorCurrent ordered track list.
tracksByGroupIdtracksByGroupId: Record<string, TimelineReadonly<Track>[]>Tracks grouped by group id, with ungrouped tracks under "ungrouped".
visibleTracksvisibleTracks: object[]Tracks currently participating in active layer and media lookup.