Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animate a layers property at a specific time using Slider Values

  • Animate a layers property at a specific time using Slider Values

    Posted by Aimee Murray on July 7, 2017 at 2:38 pm

    Hi!
    I would like to animate a layers scale from 100 to 1 at a specific time , that is decided by a slider (i.e. 5 = 5 seconds).
    I have it so that the layer changes from 100% to 0%, but I would prefer it to animate over 10-20 frames.
    Is this even possible?

    Thanks for any help
    -A

    Here's what I have:
    timeToStart = comp("Text_In_01_Graphics").layer("Null 1").effect("Time Control")("Slider");
    if (time >= timeToStart){

    [0,0]
    }else{
    [100,100]
    }

    Aimee Murray replied 9 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 7, 2017 at 3:54 pm

    Try this:

    timeToStart = comp(“Text_In_01_Graphics”).layer(“Null 1”).effect(“Time Control”)(“Slider”);
    fadeDur = .5;
    ease(time,timeToStart,timeToStart+fadeDur,[100,100],[0,0])

    Dan

  • Aimee Murray

    July 10, 2017 at 9:21 am

    That’s exactly what I was trying to do.
    Thank you so much, this site is a life saver 🙂

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