Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Scaling text to text box expression

  • Scaling text to text box expression

  • Andrei Popa

    May 13, 2019 at 6:53 am

    Hey Kalle. This is a pretty impressive expression. Congrats on that. But i have one question that I would like to ask. How did you get to the char_per_line calculation? I thought my math was decent, but i just can’t understand where that came from.

    Andrei
    My Envato portfolio.

  • Kalleheikki Kannisto

    May 18, 2019 at 7:50 am

    Not that I recall this exactly, but I think the logic was along the lines that if you consider a single character as a unit width (“1”), the full “char_count” represents a square within which the text fits. That’s why square root is the length (character count) of a single line. Because this is not a square, however, it needs to take into account both the width-to-height ratio of the actual rectangle and the leading ratio. (In hind sight I believe the leading ratio has to be experimentally derived by changing the slider, it might be a square of the actual value, rather than a scalar. Not sure any more though.)

    Kalleheikki Kannisto
    Senior Graphic Designer

Viewing 11 - 12 of 12 posts

Log in to reply.

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