Turn off and on multiple hotspots while viewing tour  

Share your tips and tricks here or get help with any Panotour problem!
No bug reports (of any kind) in this forum!
no avatar
goshiota
Member
 
Topic author
Posts: 23
Likes: 0 post
Liked in: 0 post
Joined: Wed Mar 20, 2013 12:54 am
Info

Turn off and on multiple hotspots while viewing tour

by goshiota » Thu Mar 21, 2013 6:58 am

Hi there,

Is there a way to build a tour that has a button, or a hotspot, that will show/hide all the hotspots in a scene? The purpose would be to provide the viewer the option to view the scene with out the obstuctions of hotspots, but be able to show them again once they are ready to click to view more things.

Thanks,
Jeremy

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

by bdd » Thu Mar 21, 2013 7:42 am

Hello,

The 1.8 version of PTP does not have such button, but it is easy to add it in the generated code as each panorama description (each XML file containing the panorama index number) already contains an action to hide or show the hotspots it contains : hidepanospotsaction and showpanospotsaction.

Gérald

no avatar
leifs
Member
 
Posts: 648
Likes: 1 post
Liked in: 0 post
Joined: Sun Sep 06, 2009 12:08 pm
Location: Ørsta Norway
Info

by leifs » Thu Mar 21, 2013 9:02 am

Put this into the virtualtour.xml file:

<plugin name="hotspotonoff" url="virtualtourdata/graphics/combobox.swf" preload="true" keep="true" align="rightbottom" x="10" y="20" rowcount="2">
<item name="on" caption="Hotspots On" onClick="showpanospotsaction();"/>
<item name="off" caption="Hotspots Off" onClick="hidepanospotsaction();"/>
</plugin>

it needs the combobox.swf

leifs
Olympus OM-D E-M1, Leica 25mm f1.4, fisheye, zooms, primes
Seitz VRdrive2
2x Intel Xeon E5-2660, 128GB RAM, Win7 64bit, SSD RAIDs

no avatar
goshiota
Member
 
Topic author
Posts: 23
Likes: 0 post
Liked in: 0 post
Joined: Wed Mar 20, 2013 12:54 am
Info

by goshiota » Thu Mar 21, 2013 11:31 pm

Okay, cool!! Thanks for the suggestions. I have experience modifying xmls so I'll keep my fingers crossed that I get it to work.

Thanks again!

--Jeremy


Who is online

Users browsing this forum: No registered users and 1 guest

cron