How to list the VIEWs (not cameras) in Forge Viewer?

Viewed 114

we have been successfully listing the available cameras on our view by using this piece of code:

NOP_VIEWER.model.getData().cameras

This automatically lists all cameras loaded with the model. However we noticed some models only have 1 camera, even though we see more views:

Model listing 7 views

The question is: how can we get a list of those views (not the cameras)?

Notes: this model was created in 3DS Max and then exported to SVF.

1 Answers

Depending on the input file format, the Model Derivative service can export many different "viewables" as we call them. For example, for a single Revit document, the service can generate a viewable for every 3D view, and a viewable for every 2D sheet. The same probably applies to 3dsMax files - individual views are exported as separate "viewables". You can see the list of all the viewables using the Model Derivative APIs such as:

Related