Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression controls final keyframe value

  • Expression controls final keyframe value

    Posted by Deanna Keogh on August 19, 2021 at 6:49 am

    I’m building a graph template. I’m wanting to animate the y scale of the column shape layer, to which the y is already linked to an expression, which is subsequently linked to a slider. The slider controls the height of the shape/column and I would like to animate it so that no matter what value is placed in the slider, it still animates to the correct value. Basically I need to somehow have the slider value always be the value in last keyframe.

    Any ideas will be greatly appreciated

    My current y expression is as follows:

    x=100;
    y=(thisComp.layer("GRAPH CONTROLLER").effect("Graph")("Column 1"));
    [x,y]

    Many thanks 🙂

    Filip Vandueren replied 4 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    August 19, 2021 at 7:42 am

    Keyframe the animation like you would want it for a y-value of 100,

    then use this:

    x=100;
    y=(thisComp.layer("GRAPH CONTROLLER").effect("Graph")("Column 1")) * value[1]/100;
    [x,y];

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