Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Text justified to the bottom

  • Text justified to the bottom

    Posted by Robert Paynter on November 4, 2013 at 3:56 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.

    Kevin Camp replied 12 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    November 4, 2013 at 10:28 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

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