Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › increases and decreases the font depending on the length of the text

  • increases and decreases the font depending on the length of the text

    Posted by Shai Russo on February 17, 2013 at 6:43 pm

    Hello Friends
    I have a problem, I need expression associated with a text layer that whatever he does is increases and decreases the font depending on the length of the text. For example, a short word size will be large and long word will be smaller
    Please You will be patient with me because I am very weak in programming
    Thanks Shai

    shai russo

    Kris Palette replied 13 years, 7 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 17, 2013 at 8:00 pm

    Expressions have no control over font size. You could use a Scale Animator and base the calculation on the number of characters in the text, which would give you an approximation suitable in some cases.

    The other possibily would be to use the sampleImage() hack to get more precise (but much slower) results. If you want to go that route, just search this forum for “sampleImage” and you should find something close to what you’re looking for.

    Dan

  • Kris Palette

    February 17, 2013 at 8:04 pm

    yes .

    and here is the very dirty way (expressed on SCALE)

    [value[0] - (text.sourceText.length*10),value[1] - (text.sourceText.length*10)]

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