Move to current view + 180º

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
jare
Posts: 365
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

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.
User avatar
jare
Posts: 365
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

No ideas? :(
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

The easiest solution is javascript. Make an action Mouse click -> Goto URL and enter the code in one line as the URL:

Code: Select all

javascript:pano.moveTo(pano.getPan()+180.0,pano.getTilt(),pano.getFov(),5.0);
The last number 5.0 is the speed.

You can find the documentation for this here: https://ggnome.com/doc/pano2vr/5/javascript-api/
MfG, Thomas
User avatar
jare
Posts: 365
Joined: Thu Mar 19, 2009 1:26 pm
Location: RU/CZ
Contact:

Thanks, Thomas, will try it.

Upd: works!
Attachments
thumb up.jpg
thumb up.jpg (26.42 KiB) Viewed 2680 times
Post Reply