Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Dynamic Text Scaling/Auto-Resize Text within Text Boundary/Fixed Area

  • Dynamic Text Scaling/Auto-Resize Text within Text Boundary/Fixed Area

  • Crystal Lee

    January 28, 2022 at 12:55 pm

    Hi all,

    I’m fairly new to expressions so bear with me!
    I was wondering if there’s a set of expressions that would allow text to auto resize itself (scale smaller when it goes beyond text boundaries, eg in the pic shown) so if I were to enter more text, the font size would scale down to fit 3 lines but within the area shown in the example. I’ve seen many tutorials online which focuses more on resizing textboxes to the text but I’m looking for one that only applies to text alone.

    Alot of the expressions also base their calculation on the comp itself, so I was wondering if it could be defined by the text boundary box instead.

    If if there’s been an explanation or tutorial done before on the topic please feel free to link below!


  • Adam Greenberg

    January 28, 2022 at 2:04 pm

    yes its possible, but are you saying that if the text becomes 3 lines it needs to be exactly the height of the combined 2 lines you have shown in your example ?

  • Adam Greenberg

    January 28, 2022 at 3:34 pm

    I have a project that needed this exact thing,

    your text needs to be paragraph text,

    but the only problem is as the text resizes, the paragraph box also resizes and you may have to stretch the paragraph bounding box horizontally or vertically depending on what you type.

    see project enclosed, there are 2 options, text builds down, or text builds from center. the orange solid is your limit and you can change the solid’s dimension. it’s a guide layer, it won’t appear in the final result.

  • Filip Vandueren

    January 28, 2022 at 4:11 pm

    I shared a project in this thread:

    With my method, you can have horizontal (width of your text-box) and vertical (max pixels-height slider) fitting with word-wrapping.

    It is a bit slower to calculate though.

    How to auto scale text and start new line is needed

Viewing 1 - 4 of 4 posts

Log in to reply.

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