Hello There !
Maybe somone can help me with my issue.
I have different hotspots e.g. Hotels / Action & Fun. Now I have made switches that only hide / show the hotspots of a certain category.
So far everything has been simple and works wonderfully.
But when I switch to the next panorama, he doesn't remember whether I want to see the respective category or not.
Now I have found out that I need an action (on the onnewpano tag) that checks whether these hotspots are on or off when changing the panorama and also transfers it to this scene, unfortunately I have no idea how to write this code.
My Hotspot:
<hotspot name="info2" style="hss1" ath="-23.870" atv="4.677" tag="" url="..." onclick="" hotelspot="yes" />
My Actions to Show/hide this Category:
<action name="hidehotelspot" >
for(set(i,0), i LT hotspot.count, inc(i),
if(hotspot[get(i)].hotelspot == yes,
set(hotspot[get(i)].visible,false);
); );
</action>
<action name="showhotelspot" >
for(set(i,0), i LT hotspot.count, inc(i),
if(hotspot[get(i)].hotelspot == yes,
set(hotspot[get(i)].visible,true);
); );
</action>
Greetings,
Kat