Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Sonntag, 14. Februar 2010, 20:02

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.

Quellcode

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>

2

Sonntag, 14. Februar 2010, 21:09

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

Sonntag, 14. Februar 2010, 22:00

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.

4

Sonntag, 14. Februar 2010, 22:43

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

Montag, 15. Februar 2010, 22:04

Hi,

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

e.g.

Quellcode

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


best regards,
Klaus

6

Dienstag, 16. Februar 2010, 04:44

Hi
Thanks for the help !

Ähnliche Themen