i think scene counts start at scene0 or scene _0. would this not work?
showtext(get(scene[scene_0].title),textstyle);
using that as the onhover of a hotspot will get the title of the scene it is targeting.
Thanks, this works like this
<hotspot name="spot1" style="hotspot_ani_black"
ath="0"
atv="0"
zoom="false"
onhover="showtext(get(scene[scene_01].title),textstyle);"
onclick="looktohotspot(get(name)); loadscene('scene_01',null,MERGE,BLEND(1));"
/>
It would be nice if the template for this could be automatically generated in the Vtour. I actually believed I could config that but I can see now that there is no template for doing this.
BTW there is a weird way the scene names are loaded.
The startup action says this
<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);
But the first scene which is loaded from this is named scene_01 and if you want scene 02 to load you have to change it to get(scene[1]
It does not make sense.
Hans