ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Changing the font on multiple text layers quickly

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nathan Karamanski
Changing the font on multiple text layers quickly
on Sep 17, 2012 at 6:32:53 pm

Hello everyone,

Is there an easier way to change the font used in multiple layers of text without going layer by layer? I have about 10 comps, each with animated layers of text that need their font changed. They are all currently set to the same font. Any ideas?


Return to posts index

Walter Soyka
Re: Changing the font on multiple text layers quickly
on Sep 17, 2012 at 6:59:11 pm

[Nathan Karamanski] "Is there an easier way to change the font used in multiple layers of text without going layer by layer?"

Scripting to the rescue! Check out Paul Tuersley's pt_TextEdit [link].

Walter Soyka
Principal & Designer at Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
RenderBreak Blog - What I'm thinking when my workstation's thinking
Creative Cow Forum Host: Live & Stage Events


Return to posts index

Brian Kessler
Re: Changing the font on multiple text layers quickly
on Dec 1, 2015 at 4:01:23 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).


Return to posts index


Peter McCue
Re: Changing the font on multiple text layers quickly
on Feb 11, 2016 at 9:06:26 pm

Thanks for updating this, nice hidden feature

Peter McCue


Return to posts index

Vugar Ashrafov
Re: Changing the font on multiple text layers quickly
on Jul 16, 2020 at 1:49:22 pm

Is there any function that I parent the source text of "TEXT 2" to "TEXT 1"? So when I change the font of "TEXT 1" it automatically change the font of "TEXT 2" ?


Return to posts index

Walter Soyka
Re: Changing the font on multiple text layers quickly
on Jul 16, 2020 at 2:41:32 pm

No. Text attributes like typeface cannot be changed over time, so there's no way to control them with expressions.

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


Return to posts index


Vugar Ashrafov
Re: Changing the font on multiple text layers quickly
on Jul 16, 2020 at 3:53:45 pm

So what about it:

https://helpx.adobe.com/after-effects/using/expressions-text-properties.htm...


Return to posts index

Walter Soyka
Re: Changing the font on multiple text layers quickly
on Jul 16, 2020 at 4:11:10 pm

I stand corrected! You could use this expression on each text layer that you want to receive styling from another layer:

// Accessing the style object of a specific text layer
thisComp.layer("Other Layer Name").text.sourceText.style;


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


Return to posts index

Vugar Ashrafov
Re: Changing the font on multiple text layers quickly
on Jul 16, 2020 at 5:01:20 pm

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


Return to posts index


Walter Soyka
Re: Changing the font on multiple text layers quickly
on Jul 16, 2020 at 6:06:21 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Vugar Ashrafov
Re: Changing the font on multiple text layers quickly
on Jul 17, 2020 at 9:44:13 am

Thanks! I will try it


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]