MCPcopy
hub / github.com/midrender/revideo / useScene

Function useScene

packages/core/src/utils/useScene.ts:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 * Get a reference to the current scene.
7 */
8export function useScene(): Scene {
9 const scene = SceneStack.at(-1);
10 if (!scene) {
11 throw new Error('The scene is not available in the current context.');
12 }
13 return scene;
14}
15
16export function startScene(scene: Scene) {
17 SceneStack.push(scene);

Callers 12

setDrawHooksMethod · 0.90
useScene2DFunction · 0.90
parseShaderFunction · 0.90
zoomInTransitionFunction · 0.90
useTransitionFunction · 0.90
slideTransitionFunction · 0.90
zoomOutTransitionFunction · 0.90
useContextFunction · 0.90
useContextAfterFunction · 0.90
beginSlideFunction · 0.90
example.tsxFile · 0.90
finishSceneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected