hidepanopointspots does not work after mainloadscene ?

  • Hi !


    I built this tour : http://www.aircamera.fr/visite_virtuel…orzine/360.html

    And i used this code for icons in menus :

    Code
    <action name="buttonOnClick">
              if (xml.scene != pano45,            mainloadscene(pano45);          );	 	  
    wait(blend); lookto(36.733333, 32.516667, 90.000000);hidepanopointspots();set(hotspot[spotpoint78].visible, true);</action>

    This code is supposed to hide all spot except one.
    It works fine but when you click on the first icon down in the left menu, then you click on the first icon down in the right menu, the picture changes, and all my hotspots are visible !

    It seems that hidepanopointspots does not work after mainloadscene... You have to click twice on the button to hide other spots...

    Can I do something more to hide them ?

    Thank you very much !
    Cyril

    Edited 3 times, last by aircamera (February 5, 2014 at 12:41 PM).

  • I also tried to add an action after

    Code
    onclick="buttonOnClick"


    but as soon as I add ";" after onclick, it doesn't work anymore.

    Code
    onclick="buttonOnClick ; hidepanopointspots"

    This doesn't work either... *confused*

    Can you help me please ? I'm a bit lost...
    Thank you very much !
    Cyril

Participate now!

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