Hello, I'm a newbie with KRPano and am at the very beginning of the learning curve, so thanks in advance for your answers.
I'm creating a tour with 5 panos (say pano1, pano2, pano3...), pano1 is the 1st one to load. I'd like to automatically zoom to a specific area of this pano1 and then load the next pano (pano2) automatically after a specific amount of time.
How can I achieve this?
Zoom and load next pano after specific amount of time
-
-
wait(put time in secongs here);
moveto(0,0,0); <-- ath, atv, speed
loadpano(asdf.xml);i think that is right ...
-
Hi, Immersium!
I agree with VN2009. Use the "onstart" command to have all of this done automatically when the tour is loaded. You will have 5 or 6 different .xml files - A new one for each panorama image. Here's my example.
Code<krpano version="1.0.6" onstart="loadpano(pano1.xml);moveto(90,0,120);wait(5);loadpano(pano2.xml);">
Repeat the wait and loadpano commands as many times as needed. Alternatively, you can put all that into an action and have that action loaded with the onstart command:
Code<krpano version="1.0.6" onstart="action(starttour);"> <action name="starttour"> loadpano(pano1.xml); moveto(90,0,120); wait(5); loadpano(pano2.xml); />
Hope that helps you.
Tyler
-
Great, works perfectly!
Thanks VN2009 and Tyler.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!