First time-helpme <scene name="s5" onstart="delayedcall(20,action(switchscene,s5,s6,0,0))" > doesn't work

  • Hi! it's the first time i work with krpano, it's great but i have a problem switching from a scene to another could you help me?? this is the code in the tour.xml
    <scene name="s3" onstart="delayedcall(20,action(switchscene,s3,s4,0,0))" >
    and the actions
    <action name="switchscene">
    if(curscene == %1,
    set(newh,get(view.hlookat));
    set(newv,get(view.vlookat));
    set(newf,get(view.fov));
    inc(newh,%3);
    inc(newv,%4);
    inc(newf,%5);
    loadscene(%2, null, MERGE,BLEND(2));
    lookat(get(newh),get(newv),get(newf));
    set(curscene,%2);
    );
    </action>
    it load s4 scene but it doesn't complete loading and never shows the scene

    the same code changing the names of the scenes not load anysthing
    everything is stopped
    could you help me?? i don't know what is the problem??thank you

  • Hi,

    sorry, but it's difficult to say where the problem could be here...
    the code part here itself looks okay so far...

    maybe try adding some trace(...) calls and look into the log to see if everything is executed correct and in the right order,

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!