Skip to main content

novorender-api-docs / DataJsAPI / ObjectDB

Interface: ObjectDB

Methods

descendants()

descendants(object, signal): Promise<number[]>

Parameters

ParameterType
objectHierarcicalObjectReference
signalAbortSignal

Returns

Promise<number[]>


getObjectMetdata()

getObjectMetdata(id): Promise<ObjectData>

Get ObjectData by scene object id

Parameters

ParameterType
idnumber

Returns

Promise<ObjectData>


search(filter, signal): AsyncIterableIterator<HierarcicalObjectReference>

Search for objects.

Parameters

ParameterTypeDescription
filterSearchOptionsSearchOptions filtering options.
signalAbortSignalAbort request signal.

Returns

AsyncIterableIterator<HierarcicalObjectReference>

Async iterator of HierarcicalObjectReference

Remarks

See Scene.search for more details.