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

  • Just did it.

    I changed skin.xml objectrotate action:

    Code
    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

  • 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:

    Code
    <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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!