Hi,
my customer has a request to add a button, that turn panorama 180º back from any view.
Is it possible to solve it somehow, maybe using logic block or variables? The action should be like this Mouse click > Move to view > $cur + 180º
Thanks for any suggestions.
Move to current view + 180º
No ideas?
The easiest solution is javascript. Make an action Mouse click -> Goto URL and enter the code in one line as the URL:
The last number 5.0 is the speed.
You can find the documentation for this here: https://ggnome.com/doc/pano2vr/5/javascript-api/
Code: Select all
javascript:pano.moveTo(pano.getPan()+180.0,pano.getTilt(),pano.getFov(),5.0);
You can find the documentation for this here: https://ggnome.com/doc/pano2vr/5/javascript-api/
MfG, Thomas
Thanks, Thomas, will try it.
Upd: works!
Upd: works!
- Attachments
-
- thumb up.jpg (26.42 KiB) Viewed 2680 times