ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Changing Keyframes position based on text length

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shahar Bareket
Changing Keyframes position based on text length
on Feb 12, 2020 at 1:44:21 pm
Last Edited By Shahar Bareket on Feb 13, 2020 at 11:33:32 am

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 (time<t1) {p1}
else if (time<t2) {easeOut(time,t1,t2,p1,p2);}
else if (t2<time<t3) {p2}
else if (t3<time<t4) {easeIn(time,t3,t4,p2,p1);}
else if (time>t4) {p1}
else {value}



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]