Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Manipulated first keyframe

  • Manipulated first keyframe

    Posted by Mathias Van sele on September 6, 2018 at 8:11 am

    Hey Guys

    I’m trying to make a Lower third. And let the editors change the text values in Premiere with Essential graphics.
    Now i need to change the X-position of the first keyframe of the text layer.

    At the moment i found following expresion:
    x2 = thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”);
    x = linear(time,key(1).time,key(2).time,key(1).value[0],x2);
    [x,value[1]]

    It works but only for the second keyframe. How can i change it to the first keyframe?

    Thanks alot.

    x2 = thisComp.layer("Null 1").effect("Slider Control")("Slider");
    x = linear(time,key(1).time,key(2).time,key(1).value[0],x2);
    [x,value[1]]

    Andreas Brand replied 7 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andreas Brand

    September 6, 2018 at 3:00 pm

    I hope I understand you right.

    You want to replace the x-value of the first keyframe with the value of the slider?

    If so, try this code, I hoope it helps:

    x1 = thisComp.layer("Null 1").effect("Slider Control")("Slider");
    x = linear(time,key(1).time,key(2).time, x1, key(2).value[0]);
    [x,value[1]]

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