Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Changing the font on multiple text layers quickly

  • Vugar Ashrafov

    July 16, 2020 at 5:01 pm

    It didn’t work ☹ Did it work on you?

  • Walter Soyka

    July 16, 2020 at 6:06 pm

    You still need to apply the style after you get it — and explicitly keep the original text. This should work:
    var sourceTextProperty = thisComp.layer("MAIN TEXT").text.sourceText;
    var newStyle = sourceTextProperty.getStyleAt(0,0);
    newStyle.setText(sourceTextProperty);
    newStyle.setText(value);

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Vugar Ashrafov

    July 17, 2020 at 9:44 am

    Thanks! I will try it

  • Liran Tabib

    September 29, 2020 at 5:23 pm

    Hi Nathan

    You can replace all fonts in an After Effects project with FontMate

    (and a lot more)

    https://www.vdodna.com/products/fontmate/

  • Mariano Gutiérrez

    August 25, 2021 at 11:59 am

    No need to use scripts, this is the easiest solution!

  • Mariano Gutiérrez

    August 25, 2021 at 12:49 pm

    Sorry, I meant the Brian Kessler’s solution was the easiest.

  • Drago Karl

    August 26, 2021 at 4:31 pm

    Maybe they’ve implemented this feature since this post was created, but in CC 2015 you can change text attributes for multiple layers by selecting all layers with the Selection Tool (v), then switching to the Horizontal Type Tool (cmd-T)


    [url=https://www.livestuff.tech/VegitbaleGarden.html] Vegitbale [/url]

    [url = https://www.livestuff.tech/Dracaena-Reflexa.html] Dracaena Reflexa [/url]

  • Andy Engelkemier

    April 8, 2022 at 1:00 pm

    One big advantage of using an expression is that the fonts Stay linked to your “parent” layer. And you don’t have to explicitly call out the text if you do it like this:

    f = thisComp.layer(“MainText”);

    fFont = f.text.sourceText.style;

    fFont;

    I’ve split it up so that you just point “f” to your parent layer with pick whip, but you can do it all in one line of text really. I just like doing it like that so it’s easier to understand. It could just look like:
    thisComp.layer(“MainText”).text.sourceText.style;

    That’s it. That’s the only line you need. Just put that in the source text for each of your layers and the whole style will match. If the style changes over time then you’ll want to use an expression more like Walter suggests where you use getStyleAt. But you don’t have to call up the sourceText. You just have to apply the style to it. You can also call up specific styles to use like style.font(“fontName”) which will only do the font. Then you can control size, kerning, etc separately using those attributes. That’s handy if you want to do something like make the size always relative to another layer but use the same font.

Page 2 of 2

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