Setting up icons for default views via the API

Our developer who is using the API to embed our definition has responded with the below to our request

  • We initially discussed having icons to switch the model to the default views, perhaps similar to the plane icons used in Rhino for plan, side, front and perspective
    • Do i need to trigger any parameters on the model when plan, side or front is active? I suppose those should not have perspective projections?

Is there a parameter to embed in the model for standard views?

You can set camera to the standard views with this viewer settings call:

api.updateSettingAsync('scene.camera.cameraTypes.active', CAMERA_ID)

where CAMERA_ID

  • 0 = perspective view
  • 1 = top
  • 2 = bottom
  • 3 = front
  • 4 = back
  • 5 = left
  • 6 = right

thank you