Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions link a keyframe to a slider control

  • link a keyframe to a slider control

    Posted by Ahmed Ashraf on July 12, 2015 at 9:54 pm

    Hey all,

    Got 2 keyframes on the Trim Paths 1 (End) of a Shape layer 1
    The first keyframe has a value of 0

    Now I want to be able to control the second keyframe with a slider control on Null. So when the slider value is 50, the keyframe value is 50.

    Thanks in advance.

    Ahmed Ashraf replied 10 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Peter Diefenthaler

    July 13, 2015 at 12:30 am

    Something like this should work.

    min = 0;
    max = thisComp.layer("Null 1").effect("Slider Control")("Slider");

    if(numKeys > 1){
    ease(time,key(1).time,key(2).time,min,max);
    }else{
    max;
    }

    Peter Diefenthaler
    https://www.ideafirecreative.com/

  • Ahmed Ashraf

    July 13, 2015 at 2:23 am

    Worked, Thank you!

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