Camera positioning in speckle-viewer

Sorry for the late reply, took me some time to get back to this! I’ve quickly hacked something in the viewer:

  // InteractionsHandler.js
  zoomToObjectId( id ) {
    let obj = this.viewer.sceneManager.allObjects.find( o => o.uuid === id )
    if( obj ) this.zoomToObject( obj )
    else console.warn( `No object with id of ${id} found.` )
  }

This seems to work! I’ll try and publish a new release with this quick feature addition, and will update the thread here.

2 Likes