Is it possible to add a new button using JavaScript that appears only in edit mode? The button should be called “Save Action.”
The purpose of this button is to save the current camera state in Three.js. For example, if I zoom, move the camera, or change its position and zoom level, clicking “Save Action” should store that exact camera position and settings.
This feature is only needed for a few templates.
If it’s not possible to save the data directly with JavaScript, then it should be stored using JSON or PHP in a folder, so the saved camera position can be reused later.