You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2011-11-21 21:21:20

patrick moers
New member
Registered: 2011-10-27
Posts: 6

Hide/show hotspots

I asked in French but had no answer, so I come back now in English.
It would be a good idea to have a "hide/show hot spots" button.
Maybe there is an other way to do it but I don't know how.
Can you help me?
I have a virtual tour that is getting heavy to visit on http://www.hannut.be/visite/hannut.swf
Can you help me?

Offline

 

#2 2011-11-22 04:56:03

kevshu
Member
From: Fort McMurray, Alberta
Registered: 2009-05-24
Posts: 81
Website

Re: Hide/show hotspots

Add this to your main xml:

Code:

<plugin name="hotspotonoff" url="<replace>/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>

Edit the location as needed, and replace the <replace> and make sure you have a combobox.swf in your graphics folder.  If you don't, just build a tour with a combobox and copy the file over.  You can probably do this as a button also with a little more work.  Tested and works.


Uploaded Images


Kevin Schumacher
Canon 5Dmk2, 15mm Fisheye, 24-70mm, 100mm Macro, 100-400mm, Nodal Ninja 3
Orion GoTo Mount, BT Ver2 Module, Papywizard on Fujitsu LifeBook U810

Offline

 

#3 2011-11-22 18:51:05

patrick moers
New member
Registered: 2011-10-27
Posts: 6

Re: Hide/show hotspots

Thank you Kevin for your answer, but sorry, doesn't work with me. In fact I'm not a specialist in programming.
Can you give me some more precisions:
- "main xml": do you mean that I have to open the models list and edit with your code the model I choosed (rotation + help + sound)? Or is it a file that I will find in the data directory of the virtual tour?
- and what must I write in the "replace"?
Sometimes I'm a little bit stupid, but with you I will get better.
Many thanks

Offline

 

#4 2011-11-23 03:34:53

kevshu
Member
From: Fort McMurray, Alberta
Registered: 2009-05-24
Posts: 81
Website

Re: Hide/show hotspots

Your main xml file is the xml file with no number.  Example in the screenshot below.  When you build your tour, you have a data folder, named <swfname>data (this what you have to replace the <replace> with), and that folder contains a folder called graphics.  You'll need to have combobox.swf in that folder.

Hope that helps.


Uploaded Images


Kevin Schumacher
Canon 5Dmk2, 15mm Fisheye, 24-70mm, 100mm Macro, 100-400mm, Nodal Ninja 3
Orion GoTo Mount, BT Ver2 Module, Papywizard on Fujitsu LifeBook U810

Offline

 

#5 2011-11-23 18:59:47

patrick moers
New member
Registered: 2011-10-27
Posts: 6

Re: Hide/show hotspots

IT WORKS!!!!!!!!!
Thank you very much.
I did not find the main XML because I choosed the option "embed XML files" but now it's OK
Thank you again

Offline

 

#6 2011-12-07 07:44:08

the707
Member
Registered: 2011-09-29
Posts: 25

Re: Hide/show hotspots

I have wondered if it would be possible to only show hotspots when the mouse is active. In other words, when there is no mouse movement display only the pano. As soon as mouse movement is detected have the hotspots reappear.

I obviously am not a programmer so I hope this is not too naive.

Thanks,

Patrick

Offline

 

#7 2011-12-07 19:31:23

patrick moers
New member
Registered: 2011-10-27
Posts: 6

Re: Hide/show hotspots

Gee, more and more, I'm not certain that it would be a good idea, my mouse is always in motion.
Answer to kevshu, or other: wich option creates a combobox in the folder "graphics"? Sometimes I have it, sometimes not.
Thanks

Offline

 

#8 2011-12-08 22:30:56

panomano
Member
Registered: 2011-02-25
Posts: 15

Re: Hide/show hotspots

I also am looking for some code to have a hot spots toggle button. I have looked around but can't seem to find any examples. It is easy to do with Pano2vr. Can anybody point me in the right direction. I have looked at the code above but am not too savvy doing code to be able to convert over to a button.

Ron

Offline

 

#9 2011-12-12 23:31:48

panomano
Member
Registered: 2011-02-25
Posts: 15

Re: Hide/show hotspots

Hi Again,
I thought I would make one more plea for a sample code to do a show/hide hotspot button. I have been messing with it all day but unable to crack the secret:roll eyes:

thanks

Offline

 

#10 2011-12-13 00:03:36

HansKeesom
Member
Registered: 2010-07-19
Posts: 1418
Website

Re: Hide/show hotspots

Thank you guess, I finally did my first editing of XML :-)  A whole new path is waiting for me.


Regards,  Hans Keesom
I stitch and render for other photographers see http://tinyurl.com/brxvlhg for details

Offline

 

#11 2011-12-13 20:08:11

panomano
Member
Registered: 2011-02-25
Posts: 15

Re: Hide/show hotspots

HA!
I figured it out. I was sidetracked by trying to use the above combo box example as a starting place and converting that to a button. It was way easier than that once I abandoned the combo box example.

ron

Offline

 

#12 2011-12-30 13:56:47

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2670
Website

Re: Hide/show hotspots

panomano wrote:

I also am looking for some code to have a hot spots toggle button. I have looked around but can't seem to find any examples. It is easy to do with Pano2vr. Can anybody point me in the right direction. I have looked at the code above but am not too savvy doing code to be able to convert over to a button.

Ron

this is simple. panotour creates two actions called hidepanospotsaction() and showpanospotsaction().
so on your plugin for your button you just have to add this to the onclick event

Code:

<plugin name="sound-maximize"
        debug=""
        debug-offset-y=""
        url="$(STYLEDIR)/gigapixel-menu-1a.png"
        width="" 
        height="prop" 
        blendmode="normal"
        keep="true"
        align="bottom"
        x="-168"
        y="74"
        onclick="add-volumebar(); hidepanospotsaction();"
        crop="320|60|20|20"
        onovercrop="320|260|20|20"
        visible="false"
        enabled="true"
        handcursor=""
        zorder="20"
        scale=""
        rotate="180"
        onloaded="    set(scale,get(settings[themevars].menu-button-scale));
                    set(handcursor,get(settings[themevars].menu-button-handcursor));
                    set(debug,get(settings[themevars].debug));
                    set(debug-offset-y,get(settings[themevars].debug-offset-y));
                    if(debug == true, add(y,y,debug-offset-y));
                    "
    />

in above example my created button "sound-maximize" shows the volumebar (individually created action) and disables the hotspots (using the action created automatically by panotour) by clicking on it....
(I implemented this in my upcoming menu theme - during the pano slideshow the hotspots are disabled and invisible using this method...)
Liebe Gruesse,
Georg

Last edited by gkaefer (2011-12-30 14:01:45)

Offline

 

#13 2012-04-25 17:29:56

nonchiedercilaparola
Member
Registered: 2012-04-11
Posts: 10

Re: Hide/show hotspots

gkaefer wrote:

panomano wrote:

I also am looking for some code to have a hot spots toggle button. I have looked around but can't seem to find any examples. It is easy to do with Pano2vr. Can anybody point me in the right direction. I have looked at the code above but am not too savvy doing code to be able to convert over to a button.

Ron

this is simple. panotour creates two actions called hidepanospotsaction() and showpanospotsaction().
so on your plugin for your button you just have to add this to the onclick event

Code:

<plugin name="sound-maximize"
        debug=""
        debug-offset-y=""
        url="$(STYLEDIR)/gigapixel-menu-1a.png"
        width="" 
        height="prop" 
        blendmode="normal"
        keep="true"
        align="bottom"
        x="-168"
        y="74"
        onclick="add-volumebar(); hidepanospotsaction();"
        crop="320|60|20|20"
        onovercrop="320|260|20|20"
        visible="false"
        enabled="true"
        handcursor=""
        zorder="20"
        scale=""
        rotate="180"
        onloaded="    set(scale,get(settings[themevars].menu-button-scale));
                    set(handcursor,get(settings[themevars].menu-button-handcursor));
                    set(debug,get(settings[themevars].debug));
                    set(debug-offset-y,get(settings[themevars].debug-offset-y));
                    if(debug == true, add(y,y,debug-offset-y));
                    "
    />

in above example my created button "sound-maximize" shows the volumebar (individually created action) and disables the hotspots (using the action created automatically by panotour) by clicking on it....
(I implemented this in my upcoming menu theme - during the pano slideshow the hotspots are disabled and invisible using this method...)
Liebe Gruesse,
Georg

i wouldlike to insert in the menu bar a button to show or hide the hotspots so i have add this strings on main xml:


    <!-- Visualizza / Nasconde gli hotspot -->
    <plugin name="hotspotonoff" url="Civitanova_Marchedata/graphics/combobox.swf" preload="true" keep="true">
    </plugin>
    <plugin name="HotOn"  align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="hotspotonoff(); hidepanospotsaction();" onout="" onover="" onovercrop="0|65|65|65" url="Civitanova_Marchedata/graphics/menu/menu0.png" visible="" width="40" x="-220" y="31"/>
    <plugin name="HotOff" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="hotspotonoff(); showpanospotsaction();" onout="" onover="" onovercrop="0|65|65|65" url="Civitanova_Marchedata/graphics/menu/menu0.png" visible="" width="40" x="-220" y="31"/>
   

The result is that the botton compare in the menu but when i click never happend. Where is the error?

Last edited by nonchiedercilaparola (2012-04-25 17:50:46)

Offline

 

#14 2013-03-09 22:07:38

aircamera
Member
Registered: 2012-07-21
Posts: 38
Website

Re: Hide/show hotspots

Hello !
I would like to do the same thing to my pano. I need to hide hotspots. But I don't understand anything to that compobox. I have downloaded file "combobox.fla" but then, what should I do with it ?
Should I open it with Flash ?
Is there any tuto I could read to do that compobox ?
Many thanks for your help !

Last edited by aircamera (2013-03-09 23:23:41)

Offline

 

#15 2013-03-09 23:54:31

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9708
Website

Re: Hide/show hotspots


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson