listNodeScenes

  • listNodeScenes(node: Node): Scene[]
  • Finds the parent Scenes associated with the given 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:

    import { listNodeScenes } from '@gltf-transform/functions';
    
    const node = document.getRoot().listNodes()
     .find((node) => node.getName() === 'MyNode');
    
    const scenes = listNodeScenes(node);
    
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.