Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions how to use the in and out point of a layer to control time remapping?

  • how to use the in and out point of a layer to control time remapping?

    Posted by Gerard Bowden on January 31, 2014 at 7:21 pm

    I am controlling a simple animation with a slider control. To that slider i applied the expression posted below.

    I want to use a similar expression to control time remapping. Im trying to have it play the first 15 frames from the in point, pause there, then reverse back to 0 over the last 15 frames.

    INOUT = thisComp.frameDuration*15;
    IN = linear(time, inPoint, inPoint+INOUT, 0, 100);
    OUT = linear(time, outPoint-INOUT, outPoint, 100, 0);
    (IN*OUT)/10

    Ali Narangi replied 11 years, 10 months ago 3 Members · 3 Replies
  • 3 Replies
  • Kevin Camp

    January 31, 2014 at 11:39 pm

    i think i’d try it like this:

    t = thisComp.frameDuration*15;
    if (time-inPoint <= t) time-inPoint;
    else if (time >= outPoint-t) outPoint-time;
    else t;

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Gerard Bowden

    February 3, 2014 at 2:35 pm

    Thanks, that worked great.

    cheers

  • Ali Narangi

    July 1, 2014 at 2:59 pm

    hi guys i have a question…how can i control animation duration with time remap based on in and out point…
    thanks in advance

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