Using title as showtext on hotspots

  • I tried to make a code for generating an automatic showtext above hotspots and taking the title from the linked scene.
    I did not succeed so I had to do it manually for 30 hotspots.

    But is is possible to do in the same way as for the VTour thumbnails. Would save a lot of time next time.

    Hans

  • 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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!