Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Setting a Time Limit

  • Filip Vandueren

    June 15, 2009 at 12:52 am

    multiple ways to do it.
    Something like this will work:


    t=Math.min(t,5);
    t*2;

    Math.min takes the smallest value,
    so as long as time<5 t=time, if time>5, t stays at 5

    another way:


    t=linear(t,0,5,0,5);
    t*2;

    this reads harder, but has the exact same result.
    But, you can change the linear() to ease() and you won’t get a sudden stop.

  • Filip Vandueren

    June 15, 2009 at 12:53 am

    sorry, that should have been:


    t=linear(time,0,5,0,5);
    t*2;

  • Rajarshi Basu

    June 15, 2009 at 5:13 am

    Hey man, thanks a lot.

    t=linear(time,0,5,0,5);
    t*2;

    so, if in my comp of 10 secs if I want it to affect only till 3 seconds…

    then t=linear(time,3,5,10,5)
    t*2

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