You are not logged in.

Dear visitor, welcome to krpano.com 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.

1

Sunday, February 14th 2010, 8:02pm

start "moveto"

I have created rotate action which you cann see in the following example. The point is that there is a 7 seconds delay before the rotate action begins. How do I engage the rotate action without any delays immediately after logading my panorama.

Source code

1
2
3
4
5
6
7
8
9
10
11
<krpano version="1.0.8" onstart="action(start);" >
<action name="start">
		wait(7);
		moveto(100.0,10,linear(10));
		wait(2);
    	moveto(180.0,-30,linear(20));
    	zoomto(100,smooth());
    	wait(2);
   	moveto(0.0,15,linear(80));
		 </action>
</krpano>

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Sunday, February 14th 2010, 9:09pm

you do know that there is an autorotate feature built right into krpano. set autorotate to true or false. open the xml editor and the autorotate code is in there by default.

you way will work. remove the wait(7); it wont wait for 7 seconds.

3

Sunday, February 14th 2010, 10:00pm

Thanks for the reply. I should have said it a bit different. I am aware of wait(7) line, however.
I want the whole start section to start AFTER the panorama has loaded, not earlier.

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Sunday, February 14th 2010, 10:43pm

use the onloaded event to trigger. open the xml editor you will see a list of events. apply the action you want to run to the event. xmlcomplete loads soon as the xml file is done being read. onloaded fires off when all the tiles have been loaded.

5

Monday, February 15th 2010, 10:04pm

Hi,

yes, use the "onloadcomplete" event,
it will be called when the pano was loaded completely,

e.g.

Source code

1
<events onloadcomplete="action(start);" />


best regards,
Klaus

6

Tuesday, February 16th 2010, 4:44am

Hi
Thanks for the help !

Similar threads