sparkar-scenequery

0.1.4 • Public • Published

SceneQuery

SceneQuery is a bunch of functions to filter scene objects in Spark AR.

Install

Import

npm

  1. Add package with yarn or npm

    yarn add sparkar-scenequery

    or

    npm i sparkar-scenequery
  2. Load in the required module

    import { * } from "sparkar-scenequery";
    // Your script...

Usage

const Scene = require('Scene')
const all_objs = Scene.root.findByPath('**/**');
 
all_objs.then(hasMaterials).then(logName);
all_objs.then(getMaterials).then(logName);

Package Sidebar

Install

npm i sparkar-scenequery

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

14.7 kB

Total Files

3

Last publish

Collaborators

  • pofulu