You are not logged in.

1

Wednesday, July 25th 2012, 10:48pm

Urgent help - Object movie - stop on frame

Hi,

I'm trying to make a "partial 360ยบ" movie object with krpano.

Is it possible to stop rotation when reaching frame 14 and stop rotation when reaching frame 1 (on the other side)?

I can't find something similar here in the forum!

Thanks for the help!


Daniel

2

Wednesday, July 25th 2012, 11:27pm

Just did it.

I changed skin.xml objectrotate action:

Source code

1
2
if(mbdown,			if(framemove != 0,				if(rotatedirection == left,					dec(image.frame,get(framemove),1,1);				   ,					inc(image.frame,get(framemove),get(image.frames),15);				  );			  );
			delayedcall(0.01,objectrotate());		  );


This way, it stops on frame 1 while moving to the left and stops at frame 15 when moving to the right.

Now... How can I change rotation speed?
The best solution would be a mouse follow. Is it possible?

Thanks,

Daniel

3

Thursday, July 26th 2012, 10:42am

Hi,

the rotation speed/interval can be controlled by this value here:
delayedcall(0.01,objectrotate());

Best regards,
Klaus

4

Thursday, July 26th 2012, 5:51pm

Great Klaus!!!

With the "followmouse" solution this won't be necessary, but it's very good to know!!

Thanks for your support!!

Daniel

5

Thursday, July 26th 2012, 9:06pm

Hi Klaus and folks,

I'm almost finishing what was for me the biggest challenge in krpano.

On a object movie scene, i'm inserting some buttons that call standard movie files.

The point is that I need to load the videos just when the frame 7 is active.

So, the code should be something similar to:

When frames are 8 to 15, moveleft to frame 7
when frames are 1 to 6, moveright to frame 7


This is my normal rotate action:

Source code

1
2
<action name="rotateleft">		dec(image.frame,1,1,1);		delayedcall(0.03, if(rotateing,rotateleft()) );	</action>
	<action name="rotateright">		inc(image.frame,1,get(image.frames),15);		delayedcall(0.03, if(rotateing,rotateright()) );	</action>


Hope to have your help soon :)

Thanks,

Daniel