pchen66 / panolens.js

Javascript panorama viewer based on Three.js
https://pchen66.github.io/Panolens/
MIT License
2.79k stars 498 forks source link

How can a script find out which scene is currently loaded? #409

Open semenov-dev opened 1 year ago

semenov-dev commented 1 year ago

How can a script find out which scene is currently loaded? I want to save the panorama so that after the reboot I have the last panarama loaded.

Thanks!

AlexisTercero55 commented 1 year ago

Due panolens.js is built on top of Threejs, you could use the default ID that every Threejs object has if you want a more customization level you can implement a group and edits its name property for identify that scene or model.

https://threejs.org/docs/#api/en/core/Object3D.name