ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Start Rotation Throw Expression at specific time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Seth De Silva
Start Rotation Throw Expression at specific time
on Jan 13, 2017 at 12:46:19 pm

Hi all,

First time poster here but long time reader, happy new year and hope 2017 is treating everyone well.

I have an expression conundrum that I can't solve. I would like to start my simple "Throw" expression at a specific time in my time line, currently it starts as soon as the scene is played.

My expression is applied to the rotation of my layer and looks like this:

// Spin (rotate at a constant speed without keyframes)
veloc = 360; //rotational velocity (degrees per second)
r = rotation + (time - inPoint) *veloc;
[r]


Many thanks to anyone who can help!

Cut off a wolf's head and it still has the power to bite.


Return to posts index

James Ronan
Re: Start Rotation Throw Expression at specific time
on Jan 13, 2017 at 2:25:42 pm

I would do it like this:

action = 3; // begin time for animation in seconds

if (time>action){ // Spin (rotate at a constant speed without keyframes)
veloc = 360; //rotational velocity (degrees per second)
r = rotation + (time - inPoint) *veloc;
[r] } else{value};


Return to posts index

Dan Ebberts
Re: Start Rotation Throw Expression at specific time
on Jan 13, 2017 at 8:31:18 pm

Like this maybe:

tStart = 3;
r = 360; // degrees per second
value + Math.max(time-tStart,0)*r


Dan



Return to posts index


Seth De Silva
Re: Start Rotation Throw Expression at specific time
on Jan 13, 2017 at 10:20:13 pm

Thank you kind sir, this worked perfectly :)

Cut off a wolf's head and it still has the power to bite.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]