Show/hide certain hotspot groupings with containers?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
panovrlover
Posts: 157
Joined: Thu Sep 17, 2009 7:39 pm

I have around 45 node hotspots on a map that I would like to be able to toggle on/off when the user clicks a menu selection, for example to show all dining rooms, or all bedrooms etc. I had an idea to group the nodes (I have used multiple nodes with different names as they all have different icon styles) in containers, then just toggle the visibility of certain containers to show/hide the hotspots. However when I do this, it has no effect on the hotspots on the map. Have I got the wrong idea about containers, or am i missing a step?

The alternative is to just list down all the different IDs for the hotspots and either show/hide the visibility but I was hoping for a quicker solution.

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

Hi,

In the User Data for each node hotspot on the map add a descriptive word.

1. In the dining room nodes add the word 'diningroom' in the Description field
2. In the bedroom nodes add the word 'bedroom' in the Description field
3. Create a variable ie 'vis_pin' > text (leave entry blank)
4. In the Map Pin under Properties > Appearance > Alpha add a couple of trigger fields
a. user data description: $(ud) = diningroom | And
b. *vis_pin = diningroom | Or
c. user data description: $(ud) = bedroom | And
d. *vis_pin = bedroom
e. Alpha =0.000
5. Create 3 text buttons named "Hide Dining Room", "Hide Bedroom" and "Reset"
6. Add actions to each button Mouse Click > Set Variable Value > vis_pin > Set(=) > diningroom, Mouse Click > Set Variable Value > vis_pin > Set(=) > bedroom, Mouse Click > Set Variable Value > vis_pin > Set(=) > ,

Now when the map is open clicking on the Hide Dining Room button will hide all of the node buttons whose nodes have the word 'diningroom' in the User Data description. The Hide Bedroom will hide the bedroom nodes and the Dining room nodes will reappear. Rest sets it all back to normal.

cheers,

Tony
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/
panovrlover
Posts: 157
Joined: Thu Sep 17, 2009 7:39 pm

Sorry Tony, realised I never responded with thanks!

The solution worked great! Thanks!
Post Reply