novorender-api-docs / DataJsAPI / ObjectDB
Interface: ObjectDB
Methods
descendants()
descendants(object, signal): Promise<number[]>
Parameters
Parameter | Type |
---|---|
object | HierarcicalObjectReference |
signal | AbortSignal |
Returns
Promise
<number
[]>
getObjectMetdata()
getObjectMetdata(id): Promise<ObjectData>
Get ObjectData by scene object id
Parameters
Parameter | Type |
---|---|
id | number |
Returns
Promise
<ObjectData
>
search()
search(filter, signal): AsyncIterableIterator<HierarcicalObjectReference>
Search for objects.
Parameters
Parameter | Type | Description |
---|---|---|
filter | SearchOptions | SearchOptions filtering options. |
signal | AbortSignal | Abort request signal. |
Returns
AsyncIterableIterator
<HierarcicalObjectReference
>
Async iterator of HierarcicalObjectReference
Remarks
See Scene.search for more details.