Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Start Rotation Throw Expression at specific time

  • Start Rotation Throw Expression at specific time

    Posted by Seth De silva on January 13, 2017 at 12:46 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.

    Seth De silva replied 9 years, 4 months ago 3 Members · 3 Replies
  • 3 Replies
  • James Ronan

    January 13, 2017 at 2:25 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};

  • Dan Ebberts

    January 13, 2017 at 8:31 pm

    Like this maybe:

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

    Dan

  • Seth De silva

    January 13, 2017 at 10:20 pm

    Thank you kind sir, this worked perfectly 🙂

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy