Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change keyframe value of a Time Remapped Layer

  • Change keyframe value of a Time Remapped Layer

    Posted by Quest Rogers on August 9, 2016 at 4:19 pm

    Hello. Hopefully someone can help with this. What I’m trying to do is simple in theory about I couldn’t find an answer in other threads here so I thought I’d post it.

    I have a comp with a layer that has Time Remap enabled with only two keyframes. The value of the first keyframe is 0 and that isn’t going to change. But I’d like to change the value of the second keyframe with an slider on a control layer. I’m not sure how to write the expression for this. If anyone has any ideas I’d greatly appreciate it.

    Edit: I know I can just move the keyframe up or down in my timeline but I’d like for it to be connected to a slider on a control layer because I’m making a template for editors to use and I don’t want anyone changing the original layers.

    Quest Rogers replied 9 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 9, 2016 at 5:32 pm

    Something like this, probably:


    if (numKeys == 2){
    t1 = key(1).time;
    t2 = key(2).time;
    v1 = key(1).value;
    v2 = thisComp.layer("control").effect("Slider Control")("Slider");
    linear(time,t1,t2,v1,v2);
    }else
    value

    Dan

  • Quest Rogers

    August 9, 2016 at 7:47 pm

    Thanks Dan. This is exactly what I was looking for. I wrote of what you had except I was getting syntax errors for the lines with values. Thanks again!

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