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, April 26th 2020, 9:38am

Animate start of a scene??

Hi

I want to animate the first ten seconds of a scene and I have copied the following code

onstart=" delayedcall(1,lookto(100.431,-4,60,smooth(50,50,50)));"


which works fine. But how to add to this code to look to other points on the scene before the viewer stops and continues with autorotate?

I want to look to various views within a scene before the view stops. I just don't know how to string together a script to animate various views.

2

Sunday, April 26th 2020, 12:29pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
... onstart="delayedcall(1,lookto_chain());" ...

<action name="lookto_chain">
	trace('a');
	lookto(100,-25,60,smooth(50,50,50),true,true,
		trace('a-end');
		delayedcall(1,
			trace('b');
			lookto(200,20,30,smooth(50,50,50),true,true,
				trace('b-end');
				delayedcall(1,
					trace('c');
					lookto(50,0,80,smooth(50,50,50),true,true,
						trace('c-end');
					);
				);
			);
		);
	);
</action>

https://krpano.com/docu/actions/#lookto

This post has been edited 2 times, last edit by "indexofrefraction" (Apr 26th 2020, 6:09pm)


3

Sunday, April 26th 2020, 4:26pm

I can't quite get that to work.

The viewer goes to the first lookto location, but not the second or third viewing coordinates.

This post has been edited 1 times, last edit by "alfie" (Apr 26th 2020, 5:34pm)


4

Sunday, April 26th 2020, 5:58pm

checked the documentation for the arguments... corrected above...

This post has been edited 1 times, last edit by "indexofrefraction" (Apr 26th 2020, 6:09pm)


5

Sunday, April 26th 2020, 6:16pm

checked the documentation for the arguments... corrected above...
Thank you so much, greatly appreciated.

HansNyb

Professional

Posts: 1,010

Location: Denmark

Occupation: Photographer

  • Send private message

6

Thursday, May 14th 2020, 10:18am

Must say my own way is much easier and I never had any problems.

It is just like this.
onstart"wait(1);lookto(170,-20,70,smooth(20,20,20));wait(6);lookto(300,-30,70,smooth(10,10,10));wait(5);lookto(50,18,90,smooth(40,40,40););"

I have no idea of what the trace('a-end'); is for.

Similar threads