sparkar-scenequery
v0.1.4
Published
A wrapped tool to filter scene objects in Spark AR.
Downloads
2
Readme
SceneQuery
SceneQuery is a bunch of functions to filter scene objects in Spark AR.
Install
Import
npm
Add package with
yarn
ornpm
yarn add sparkar-scenequery
or
npm i sparkar-scenequery
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);