Forums › Adobe After Effects Expressions › Text moving up as write-on animation breaks into different line
-
Text moving up as write-on animation breaks into different line
-
Sophie Lorraine
May 13, 2022 at 1:03 pmHello, I basically need to re-create this animation.
so you see as the type write-on breaks into different lines, it automatically shifts the text up by a certain amounts.I’m struggling to define the text height by how many lines have been typed in. It keeps registering the whole textbox as the height.
it sounds very simple but I just can’t figure it out!
-
Adam Greenberg
May 16, 2022 at 4:03 pmsomething like this ? ( change the value of 600 to what you need ) and also anchor point needs to be on the bottom of your textlayer before you apply this
sourceSize = thisLayer.sourceRectAtTime(time, false);
T = sourceSize.top;
L = sourceSize.left;
W = sourceSize.width;
H = sourceSize.height;
([transform.position[0],T-H+600])
-
Filip Vandueren
May 19, 2022 at 11:03 amIf you animate your letters on by fading them in from opacity 0, then they indeed still add to the dimensions of the sourceRect even when they are “invisible”. The workaround is to (also) scale the invisible letters to scale 0,0, that way the sourceRect is correct for only the visible characters.
Tip: you’ll want to set the smoothness of the scale animator to 0 so you don’t see any characters at inbetween scales, only 0 and 100%
Log in to reply.