Stop Autorotation on clic

Q&A about the latest versions
Post Reply
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Hello,

I have autorotation enable on my virtual tour.

I stop it when the mouse enter a hotspot point. And I enable it when mouse leave. (Mouse enter -> stop autorotate / Mouse leave -> Start autorotate)

What I want to do is to stop autorotation when I clic on the hotspot.

So I make this action Mouse clic -> stop autorotate...
but it doesn't work. Is there something I missed ?

Thanks
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,
So I make this action Mouse click -> stop autorotate...but it doesn't work. Is there something I missed?
Hopefully, this will not be too complicated. I've attached the skin so you can see what I've done. In this example I'm using an ht_info Point Hotspot.

https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

The first Action | Mouse Enter -> stop autorotation is fine. The second Action | Mouse Leave -> start autorotation is also fine.

However, when you want to add the additional Action | Mouse Click -> stop autorotation you are having a problem because you the Mouse Leave is active even if you have added a Mouse Click.

So what we need to do is to add an Action Filter to the Mouse Leave that allows it to execute the action, start autorotation, it if the Mouse Click has not been executed. To do so we can use the'vis_info_popup' variable value set when the hotspot is Mouse Clicked.

Trigger: *vis_info_popup | Comparison = | Value: false

Now we have a Mouse Leave Action that doesn't work if the Mouse Click has been executed.

grab-11.jpg
grab-11.jpg (693.59 KiB) Viewed 1019 times

cheers,

Tony
Attachments
arot-hotspot.ggsk
(4.82 KiB) Downloaded 87 times
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

soooooooooo nice !!

Thanks a lot !! :))

:dancing_smiley:
Post Reply