I have a hotspot that, when the user clicks on it, zooms in and shows a popup. When the user closes the popup, I want the user to return to the Pan/Tilt/FoV or maybe just the zoom.
Is there a way to do this without using variables? I tried to 'store' the $cur value in a textbox so that I can retrieve it later, but of course the value continually updates.
Saving a user/viewer's Pan/Tilt/FoV and returning to it
- Hopki
- Gnome
- Posts: 13042
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi
You can not do this, however you can get close, as the FoV generally speaking is 70, just use this in the return. In this example rectangle 2 is the hotspot image and Rectangle 3 is your image.
For the hotspot image rectangle 2:
Mouse Click > Move To View > Pan/Tilt/FoV: 70.9/0.6/24.9 > Speed: 8
Mouse Click > Change Element Alpha > Alpha: 1 > Target: Rectangle 3
For the Image I am using Rectangle 3:
Mouse Click > Move To View > Pan/Tilt/FoV: 70.9/0/70 > Speed: 8
Mouse Click > Change Element Alpha > Alpha: 0 > Target: $self
Of course the P/T/FoV will be different in your panos
You can not do this, however you can get close, as the FoV generally speaking is 70, just use this in the return. In this example rectangle 2 is the hotspot image and Rectangle 3 is your image.
For the hotspot image rectangle 2:
Mouse Click > Move To View > Pan/Tilt/FoV: 70.9/0.6/24.9 > Speed: 8
Mouse Click > Change Element Alpha > Alpha: 1 > Target: Rectangle 3
For the Image I am using Rectangle 3:
Mouse Click > Move To View > Pan/Tilt/FoV: 70.9/0/70 > Speed: 8
Mouse Click > Change Element Alpha > Alpha: 0 > Target: $self
Of course the P/T/FoV will be different in your panos
- Attachments
-
- test.swf
- (713.18 KiB) Downloaded 2055 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Hi Hopki:
Thanks for the suggestion. This pano doesn't really do exactly what I want.
The behavior that I'm trying to achieve is this:
- pan the pano so that the hotspot is viewable somewhere in your field
- click on the hotspot to zoom in
- click on your new hotspot...now it should take you back to where the user was. It's varies so hardcoding something into the second rect won't really work.
There's no trick to store values in objects is there? I guess you can potentially use the position of a hidden object to store two values (x and y) but then you would need to recall it and use it. But I would then need to format it as P/T/FoV to return to the saved position.
Thanks for the suggestion. This pano doesn't really do exactly what I want.
The behavior that I'm trying to achieve is this:
- pan the pano so that the hotspot is viewable somewhere in your field
- click on the hotspot to zoom in
- click on your new hotspot...now it should take you back to where the user was. It's varies so hardcoding something into the second rect won't really work.
There's no trick to store values in objects is there? I guess you can potentially use the position of a hidden object to store two values (x and y) but then you would need to recall it and use it. But I would then need to format it as P/T/FoV to return to the saved position.