ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text justified to the bottom

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Robert Paynter
Text justified to the bottom
on Nov 4, 2013 at 3:56:10 pm

I'm trying to create the effect of words being typed at the the bottom of a text box. On return or after running past margins of text box, instead of moving off page the paragraph moves up.


Return to posts index

Kevin Camp
Re: Text justified to the bottom
on Nov 4, 2013 at 10:28:19 pm

to create the type on effect, you can use an expression like this on the source text property:

rate = 10; // value in characters per second
txt = text.sourceText;
txt.substr(0,Math.min(txt.length,Math.floor(time*rate)));


set the rate value as needed.

then for position try this expression:

offset = 100; // value in pixels
returns = text.sourceText.split('\r').length - 1;
value - [0, returns * offset]


you'll need to adjust the offset value based on the size and line spacing of the text used.

the expression looks for returns ('/r') to advance the text, so you will need to use hard returns for each new line when you type the text.

=====EDIT==========
you can make your life easier by manually setting the leading in the character palette, then use that value as the offset.


Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index

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