Black Lives Matter. Please consider donating to Black Girls Code today.

Capture scene.camera in 3D plots dynamically

Is there any plotly event that can give me the above? Right now I’m using ‘plotly_relayout’ to grab the scene.camera, but that only gets called after the user rests the mouse. I need an event that can give me the camera objects while the user is moving the mouse, within a reasonable time interval.

Yes. It is called plotly_relayouting. Please find this example: https://codepen.io/MojtabaSamimi/pen/BaaxGbx?editors=0010.

1 Like

Thank you, @archmoj, could not find that from any documentation before.

1 Like

You can see if there are any shortcut keys, but I think it’s best to shoot it by yourself.