This has wasted too much time, and I need to get some help.
I’ve created a program which has multiple graphs — one of them is a threejs plot. As my sliders change the plot, I need to save the current camera orientation to ensure that the orientation is retained after the sliders alter the plot. I seem to have the correct logic, but the following code only seems to save the current camera orientation once. Every call thereafter, just gives me the same camera orientation save from the first time. I’m not sure if this is a known issue — I can provide much more code to provide further context if needed. Any help would be greatly appreciated!
// Get current camera position and orientation
const sceneLayout = document.getElementById('threejs-plot').layout.scene;
const camera = sceneLayout.camera;