You are not logged in.

1

Monday, February 3rd 2014, 7:49pm

hidepanopointspots does not work after mainloadscene ?

Hi !


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

And i used this code for icons in menus :

Source code

1
2
3
<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

This post has been edited 3 times, last edit by "aircamera" (Feb 5th 2014, 12:41pm)


2

Wednesday, February 5th 2014, 12:40pm

I also tried to add an action after

Source code

1
onclick="buttonOnClick"

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

Source code

1
onclick="buttonOnClick ; hidepanopointspots"
This doesn't work either... *confused*

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

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

3

Wednesday, February 5th 2014, 1:31pm

I suppose the right syntax for calling a queue of actions onclick is:

Source code

1
onclick="buttonOnClick();hidepanopointspots();"
Regards,

Alexey

4

Friday, February 7th 2014, 5:08pm

Hi !
You are right ! With the correct syntax it works !
But I still have to click twice on the button with this new code...


Thank you.

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

5

Friday, February 7th 2014, 7:01pm

Can you please write a more detailed algorythm of what each button should do and when all these hotspots must be hidden. What are "button to the right" and "button to the left" supposed to do?
Regards,

Alexey