Hi...
Does anyone know how I can call an action, for example, Auto open an image, on 'wait' - pause rotation.. Then Auto close that image after 'wait' time is over and rotation continues....????
Thank you
Destiny..
Hi...
Does anyone know how I can call an action, for example, Auto open an image, on 'wait' - pause rotation.. Then Auto close that image after 'wait' time is over and rotation continues....????
Thank you
Destiny..
Hi,
the wait action blocks everything:
https://krpano.com/docu/actions/#wait
Use the delayedcall action instead:
https://krpano.com/docu/actions/#delayedcall
Best regards,
Klaus
Hi Klaus..
Well that is really useful information.... Makes a lot of sense too...
I will give that a go.. Thank you..
Destiny..
Well.. I have the 'wait' working as I like it, but as you said it stops everything else including other media from loading during the 'wait' time..
mainloadscene(pano10);
lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
wait(6);
So I tried this among other things.. I am guessing it must be wrong.. since it does not work...
mainloadscene(pano10);
lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
delayedcall(5.0, lookto() );
Destiny..
Hi,
what are you trying to do?
The lookto() without any parameters wouldn't do anything.
Best regards,
Klaus
Hi Klaus... Something quite cool if it works..
I am trying to get media such as an image and later a Media Box, to open at the beginning of the Wait Time then auto close when the Wait time has expired... This process is repeated according to the number of Waits in the Tour. This works really nicely but I cannot get other media to open during the Wait times..
http://www.destinyvirtualtours.com/PTPV2kolorFINA…sTour/GoTo.html
Destiny...
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19">
<!-- ********** -->
<!-- Simple Button -->
<!-- id : button -->
<!-- ********** -->
<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/take-tour_copy.png"
align="topright"
x="10"
y="10"
zorder="1"
visible="false"
onclick="buttonOnClick"
/>
<action name="buttonOnClick">
mainloadscene(pano10);
lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
wait(0);
mainloadscene(pano10);
lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
wait(6);
mainloadscene(pano10);
lookto(19.125000, 54.900000, 90.000000, smooth(100,50,20));
wait(3);
mainloadscene(pano10);
lookto(-134.325000, -45.000000, 69.012249, smooth(100,50,20));
wait(7);
mainloadscene(pano10);
lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
</action>
<events name="buttonevents"
onTourStart="showbutton();"
hidetourcontrols="hidebutton();"
showtourcontrols="showbutton();"
keep="true" />
<action name="hidebutton">set(layer[button].visible, false);</action>
<action name="showbutton">set(layer[button].visible, true);</action>
</krpano>
Thank you Klaus for your help.. I will try and get it working..
Destiny...
Well Klaus.. I am not getting any errors which is good but I am not getting any 'delay' periods either..
I tried a few versions until I had no errors..
Destiny..
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19">
<!-- ********** -->
<!-- Simple Button -->
<!-- id : button -->
<!-- ********** -->
<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/take-tour_copy.png"
align="topright"
x="10"
y="10"
zorder="1"
visible="false"
onclick="buttonOnClick"
/>
<action name="buttonOnClick">
<action name="step1">
mainloadscene(pano10);
lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
delayedcall(6, step2() );
</action>
<action name="step2">
mainloadscene(pano10);
lookto(43.875000, 21.825000, 90.000000, smooth(100,50,20));
delayedcall(6, step3() );
</action>
<action name="step3">
mainloadscene(pano10);
lookto(19.125000, 54.900000, 90.000000, smooth(100,50,20));
delayedcall(8, step4() );
</action>
<action name="step4">
mainloadscene(pano10);
lookto(-134.325000, -45.000000, 69.012249, smooth(100,50,20));
delayedcall(7, step5() );
</action>
<action name="step5">
mainloadscene(pano10);
lookto(get(panoview.h), get(panoview.v), get(panoview.fov), smooth(100,50,20));
delayedcall(7, step1() );
</action>
Here the first Action works and opens a WebsiteViewer fine but how to close the WebsiteViewer on new Action opening..???
The RED code here I tried as a separate Action but I then tried as it is.. Seems to me that it should work but it doesn't.. Any advise or ideas would be appreciated..
Destiny..
<action name="step3">
lookto(19.125000, 54.900000, 90.000000, smooth(100,50,20));
delayedcall(8, step4() );
openWebsite_websiteViewer(eventsPlugin2websiteViewer|websiteViewer|displaywebsitewebsite_url, eventsPlugin2websiteViewer|websiteViewer|displaywebsitewebsite_title);
</action>
<action name="step4">
if(ptplugin[websiteViewer].isOpen, true);
set(ptplugin[websiteViewer].isOpen, false);
lookto(-134.325000, -45.000000, 69.012249, smooth(100,50,20));
delayedcall(7, step5() );
</action>
Yaaay!!.. All working... So so so cool..
http://www.destinyvirtualtours.com/PTP-Kolor-2.5-…CustomView.html
Destiny..
Don’t have an account yet? Register yourself now and be a part of our community!