@gltf-transform/functions
Version:
Functions for common glTF modifications, written using the core API
19 lines (18 loc) • 595 B
TypeScript
import { Node, Scene } from '@gltf-transform/core';
/**
* Finds the parent {@link Scene Scenes} associated with the given {@link Node}.
* In most cases a Node is associated with only one Scene, but it is possible
* for a Node to be located in two or more Scenes, or none at all.
*
* Example:
*
* ```typescript
* import { listNodeScenes } from '@gltf-transform/functions';
*
* const node = document.getRoot().listNodes()
* .find((node) => node.getName() === 'MyNode');
*
* const scenes = listNodeScenes(node);
* ```
*/
export declare function listNodeScenes(node: Node): Scene[];