Activity › Forums › Adobe After Effects › Changing the font on multiple text layers quickly
-
Changing the font on multiple text layers quickly
Andy Engelkemier replied 4 years, 1 month ago 9 Members · 18 Replies
-
Walter Soyka
July 16, 2020 at 6:06 pmYou 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] -
Liran Tabib
September 29, 2020 at 5:23 pmHi 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 12:49 pmSorry, I meant the Brian Kessler’s solution was the easiest.
-
Drago Karl
August 26, 2021 at 4:31 pmMaybe 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 pmOne 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.
Reply to this Discussion! Login or Sign Up