I''ve managed to get a Little Planet fly in to work and I've managed to get an autotour script to work; however, when I try to put them both in the same script - no luck. My experience with xml scripting is limited so I don't know what order the pieces must be in to work correctly. Both examples I worked from start with "on start". I assume there can only be one "on start" so how would I get the tour to start when the little planet sequence is finished?
Little Planet script here:
<krpano version="1.0.8" onstart="wait(blend); action(intro)">
<action name="intro">
tween(view.hlookat, 67, 2.5, easeInOutQuad );
wait(3);
tween(view.vlookat, -10, 2.5, easeInOutQuad );
tween(view.fov, 80, 2.5, easeInOutQuad );
tween(view.fisheyefovlink, .3, 2.5, easeInOutQuad );
tween(view.fisheye, 0.33, 2.5, easeInOutQuad);
tween(view.architectural, .35, 2.5, easeInOutQuad);
wait(5);
set(display.flash10,on);
tween(display.details,32);
set(display.stillquality,HIGH);
set(display.stillquality10,HIGH);
tween(view.fovmax,120);
</action>
<image>
<sphere url="pano.jpg" />
</image>
<plugin name="logo"
url="2012logo2.png"
align="rightbottom"
x="10"
y="10"
onclick="openurl('http://homepage.com');"
/>
<view hlookat ="-150.807361"
vlookat ="85.000000"
camroll ="0.000000"
fov ="140.000000"
fovmin ="50.550680"
fovmax ="150.000000"
maxpixelzoom ="1.000000"
limitfov ="true"
fisheye ="1.00"
fisheyefovlink="0.50"
stereographic ="true"
architectural ="0.0"
architecturalonlymiddle="true"
limitview ="auto"
hlookatmin ="NaN"
hlookatmax ="NaN"
vlookatmin ="NaN"
vlookatmax ="NaN"
/>
</krpano>
Autotour script here:
<krpano onstart="setuptour();">
<action name="setuptour">
set(step,1);
set(idletime,4);
set(events.onidle, autotour() );
</action>
<action name="autotour">
oninterrupt(break);
if(step == 1, lookto(67,-10,95,linear(10)); inc(step); );
if(step == 2, wait(3); inc(step); );
if(step == 3, lookto(160,-24,50,linear(20)); inc(step); );
if(step == 4, wait(2); inc(step); );
if(step == 5, lookto(165,-2,100,smooth(20,20,20)); inc(step); );
if(step == 6, wait(3); inc(step); );
if(step == 7, lookto(240,-15,90,smooth(20,20,20)); inc(step); );
if(step == 8, lookto(240,-15,60,smooth(20,20,20)); inc(step); );
if(step == 9, wait(2); inc(step); );
if(step == 10, lookto(360,-25,80,smooth(20,20,20)); inc(step); );
if(step == 11, lookto(67,-17,115,linear(10)); inc(step); );
if(step == 12, tourdone(60,-15,90,tween(3, 100.0, 1.0, linear, WAIT); );
</action>
<image>
<sphere url="pano.jpg" />
</image>
<plugin name="logo"
url="2012logo2.png"
align="rightbottom"
x="40"
y="10"
onclick="openurl('http://homepage.com');"
/>
</krpano>