VIewer CameraController setView

Hi,

I’m working with Speckle viewer and it’s awesome so far!

I have implemented a button to toggle from top to 3d view. This works cameraController.setView('top'); but this doesn’t cameraController.setView('3d'); nor does this cameraController.setView('3D'); event though this seems possible from documentation.

I’m importing CameraController directly from @speckle/viewer in a JS project.

Thanks!

Hi @Quentin

You are totally correct! It seems we’ve overlooked implementing the ‘3d’ canonical view :smiley_spockle:

A PR that fixes this is already on it’s way an will be present in our next release.
Until that lands you could use an overload of the same setCameraView function which takes an InlineView

Thank you for pointing this issue out! Do let us know if you run into other issues

Cheers

1 Like