Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 2 3 4 |
<action name="areasur"> set(area4,get(pano[3.xml].visible)); if(area4 == false, set(plugin[surounding].visible,false);, set(plugin[surounding].visible,true); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Hi ,
I like to do an if /else thing (in xml)... so that it gets if a certain panorama (xml) is loaded...
for example:
![]()
Source code
1 2 3 4 <action name="areasur"> set(area4,get(pano[3.xml].visible)); if(area4 == false, set(plugin[surounding].visible,false);, set(plugin[surounding].visible,true); </action>
![]() |
Source code |
1 2 3 |
if (xml.url == "3.xml",set(plugin[surrounding].visible,true)); if (xml.url == "4.xml",set(plugin[surrounding].visible,false)); ... |
![]() |
Source code |
1 2 3 4 5 6 7 8 |
<krpano version="1.0.9" surroundingvis="true" > <events onxmlcomplete="onxmlcomplete()" /> <action name="onxmlcomplete"> copy(plugin[surrounding].visible,surroundingvis); </action> </krpano> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 2 3 4 5 6 7 8 9 |
<action name="tuur"> ... if(xml.url == '3.xml', set(plugin[pinsane].visible,true);, set(plugin[pinsane].visible,false); ... </action> |
This post has been edited 1 times, last edit by "Tuur" (May 7th 2010, 11:05pm)