Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text Size respond to minumum/maximum width

  • Text Size respond to minumum/maximum width

    Posted by Armand Verhoeven on January 25, 2013 at 10:19 am

    Hi Guys,

    I try to do something tricky.
    I’am making a text preset which I want the Source text to be the master of the others linking to the Source text. (there are 2 other text linking to them)

    Now it only respond what text is in the source text but not the font size.

    Also I want the text to be a minimum and maximum size. No mather how long the sentence is.
    So for example 800px (width) at all time.

    Hope you can help me out.

    Paul Roper replied 13 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Paul Roper

    February 5, 2013 at 1:42 pm

    Did you solve your text size problem?

    While you can’t directly access the font size from an expression (as far as I know), if you add a scale animator (from the pop-up menu on the text layer, choose Animate > Scale) you can then add an expression in there. You can get the length (in characters) of the text using:

    thisComp.layer(“replace this with your text layer name”).text.sourceText.length

    You’ll need to do a fair amount of maths to adapt the scale to the correct value, but I hope this brief response might help as a starting point!

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