Hello
Using several borrowings and with Michel's invaluable advice I've made a simple automation which restarts after 3 secs when users finish any manipulation. I'd like to zero the panos after - for instance - a user looks up 90º - at present the pano continues in that orientation.
Please point out any other problems - it is intended to run quite slowly...
JL
---------------------------------------------
krpano version="1.0.8" onstart="setuptour();">
<image type="SPHERE">
<sphere url="images/a0.jpg" />
</image>
<view hlookat="0" vlookat="0" />
<display details="22" />
<action name="setuptour">
set(idletime,3);
set(events.onidle, autotour());
</action>
<action name="autotour">
oninterrupt(break);
wait(5);
lookto(360,00,90,smooth(5,5,5), false);
wait(5);
loadpano(a1.xml,null,KEEPBASE|NOPREVIEW,BLEND(2));
wait(load);
lookto(360,00,90,smooth(5,5,5),false);
wait(5);
loadpano(a2.xml,null,KEEPBASE|NOPREVIEW,BLEND(2));
wait(load);
lookto(360,00,90,smooth(5,5,5),false);
etc etc (8 panos)
autotour();
</action>
<events onidle="action(autotour);"/>
</krpano>