Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Link the second slider keyframe to a text value

  • Link the second slider keyframe to a text value

    Posted by Andy Bryce on May 4, 2017 at 6:11 pm

    Hi all,

    I am looking for an expression that will link the second keyframe of a slider that is controlling a bar graph animation to be able to link to a text layer.

    Thank you in advance

    Andy Bryce replied 9 years ago 1 Member · 1 Reply
  • 1 Reply
  • Andy Bryce

    May 4, 2017 at 6:35 pm

    Solved!

    if (numKeys > 1) {
    newV2 = parseInt (thisComp.layer("text layer").text.sourceText,10);
    v1 = valueAtTime (key(1).time);
    v2 = valueAtTime (key(2).time);
    linear(value,v1,v2,v1, newV2);
    }else{
    value
    }

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