Can I remove the screen capture button? ("P" button)

Can I remove the screen capture button? (“P” button)

Hi

Yes, to disable possibility to capture screenshots you can either:

  • add ‘noscreenshots’ hash to end of the url (example: https://demo.shapespark.com/demo-room/#noscreenshots), or
  • set “WALK.NO_SCREENSHOTS = true” in body-end.html
1 Like

Is this code possible… :frowning:

 viewer.onMaterialClicked("001", () => {
          view.camera({
        fov: 40,
      });
  });

Can I change the fov(“field of view”) part to JavaScript?

Hi

Not sure what is your specific need here, but there is not direct access to camera parameters.
To change the “fov” you would need to create new view via code with custom “fov” value and switch to this view. (example view.fov: 40)

For example, if I moved the view somewhere else, could I change the “fov” value to 70 (default)->50?

Yes,
You would need to create a transition to a new view using script and alter the destination “fov” value.

For example, when using this example, you would need to add “fov” parameter:

    var view = new WALK.View();
    view.position.x = 0.956;
    view.position.y = -2.922;
    view.position.z = 1.546;
    view.rotation.yawDeg = 121.59;
    view.rotation.pitchDeg = -44.78;
    view.fov = 120;  
    viewer.switchToView(view);