-
Changing Keyframes position based on text length
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}
Sorry, there were no replies found.