Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

489 B
Raw Blame
import { usePlayerStore } from "../store/playerStore";
import { timelineClipFocusId } from "./timelineNavigationIdentity";

/**
 * Select a newly-created clip and scroll the timeline to it, the same pair of
 * calls AssetCard/AudioRow use to reveal an existing clip on activation.
 */
export function selectAndRevealTimelineElement(key: string): void {
  const store = usePlayerStore.getState();
  store.setSelectedElementId(key);
  store.requestTimelineFocus(timelineClipFocusId(key));
}