Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions newbie expression problem

  • newbie expression problem

    Posted by Michael Underwood on March 4, 2016 at 7:27 pm

    I have a null that is moving only in x position, going from a value of 100 at frame 10 to a value 200 at frame 20. It then holds until frame 60 and then goes back to the initial value of 100 at 70. I’d like to at a control layer with a slider that allows me to change the offset value of the middle two keyframes(frame 20 and 60 in this example) but leaves the outer two keyframes the same.

    I’ve tried fumbling around with valueAtTime but can’t quite get the hang of it. Can someone break this down for an expression newb? Thanks for your help.

    Michael Underwood replied 10 years, 2 months ago 1 Member · 1 Reply
  • 1 Reply
  • Michael Underwood

    March 4, 2016 at 8:27 pm

    I was able to hack this together by using the below thread as an example.

    https://forums.creativecow.net/thread/227/25409

    Here’s what I came up with, probably a more elegant way to do this but it worked.

    max = thisComp.layer(“control”).effect(“Length”)(“Slider”)
    min = 436.5019
    t1 = key(1).time
    t2 = key(2).time
    t3 = key(3).time
    t4 = key(4).time
    if (time<=t1) min;
    if (time>=t2) max;
    else if (time>t1 && time=t3) ease(time,t3,t4,max,min);

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