• Probably a beginners question?
    When changing from one scene to another I can close an accidentally left-open hotspot thus:

    onstart="set(hotspot[tess-spot].visible,0);"

    How do I ensure that several are closed? I've tried set(hotspot[tess-spot][mod-spot]
    & set(hotspot[tess-spot,mod-spot] but that doesn't work...

    Thanks

    JL

  • Hi John,
    make an action like this:

    Code
    <action name="hide_hotspots_pano01">
    set(hotspot[tess-spot].visible,false);
    set(hotspot[mod-spot].visible,false);
    set(hotspot[xyz-spot].visible,false);
    </action>

    then put it on the "onstart":

    Code
    onstart="hide_hotspots_pano01();"

    this should work. And you can make an action specific for each pano.

    But two questions:
    a) if you need to hide ALL hotspots, why you don't want to use the variable "hotspot.visible"?

    Code
    onstart="set(hotspot.visible,false);"

    b) What do you mean with: "When changing from one scene to another I can close an accidentally left-open hotspot"
    How is possible that you have a left-open hotspot? if a hotspot is visible in another pano, probably you have set in the hotspot
    the "keep" attribution to "true".

    Toni

Participate now!

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