You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Thursday, November 24th 2011, 12:48pm

Self move steps

Please I made a plugin to look around and load some panos , I just want to know what I have to do to:
1 when I move the mouse stops this action
2 if I leave the mouse idle for more than 5 seconds the action begins again.
Can I make it? Is it possible?
Thank you everybody


Thursday, November 24th 2011, 12:55pm


yes it's possible. Here is short example code how to do it:

<krpano version="" onstart="action(setuptour);>

<action name="setuptour">
set(events.onidle,action(autotour) );

<action name="autotour">
if(step == 1, lookto(50,0,90,smooth(3,-3,10)); inc(step); );
if(step == 2, wait(1); inc(step); );
if(step == 3, lookto(-30,0,90,smooth(3,-3,10)); inc(step); );
if(step == 4, wait(1); inc(step); );
if(step == 5, loadpano(intro1.xml,null,MERGE,BLEND(1)); );


if(step == 10, tourdone(); set(step,1); );

So basically onstart it set the action to start the autotour. Idletime is the time tour wait before autotour takes control. When you interfere it with mouse, it will stop but continue from the step it was left. You can modify the steps actions as you wish, example to look on hotspot and then load panorama to go there.

Hope this helps :)

Jesse Passoja
Passoja design


Friday, November 25th 2011, 8:56pm

Thank you very much. Take a look on this link…SA/start_e.html
What about this action?
Thank you

Similar threads