Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Changing Keyframes position based on text length

  • Changing Keyframes position based on text length

    Posted by Shahar Bareket on February 12, 2020 at 1:44 pm

    Hi guys!
    I’ve asked this question here and i guess i didn’t explain myself correctly.

    i wanted to move the red line to the end of the text box and reveal it. my problem was finding a way to move it according to the text’s length.
    I’ve managed to achieve it by this method if anyone is interested:

    bleed=50;
    s1 =thisComp.layer("location")
    len = s1.sourceRectAtTime(time-s1.inPoint,true).width+bleed;
    lef= s1.sourceRectAtTime(time-s1.inPoint,true).left;

    p1 = [1837.5, 67.8]; //starting position
    p2 = [(1837.5-len)-value[0], 67.8]; //ending
    t1 = framesToTime(15)
    t2 = framesToTime(20)
    t3 = framesToTime(23)
    t4 = framesToTime(28)
    if (timet4) {p1}
    else {value}

    Shahar Bareket replied 6 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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