Zoom and load next pano after specific amount of time

  • 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?

  • 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. *smile*


    Tyler

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!