Activity › Forums › Adobe After Effects Expressions › linking text attributes
-
linking text attributes
Posted by Arne Münch on September 22, 2020 at 12:59 pmHi people!
I use this:text = thisComp.layer(“textlayer”).text.sourceText
text.style.setText(text)
to copy all text related attributes from one text layer to another.
But the individual spacing between two letters (the one you create while the cursor sits somewhere and you press alt and the arrow keys) isn´t linked this way.
Is there a way to link this spacing aswell?Thanks a lot
Trent Armstrong replied 5 years, 7 months ago 3 Members · 6 Replies -
6 Replies
-
Trent Armstrong
September 22, 2020 at 3:05 pmHey!
This one always gets me for sure! I don’t think there is an expressions way to transfer the kerning between text layers. It’s possible to use Text Animators to alter the kerning per character and use expressions on the Text Animators to do what you’re talking about. It would take a lot more setup on the front end, but I’m pretty sure it would do what you’re talking about once you have all the attributes linked up.
Trent
-
Arne Münch
September 22, 2020 at 3:36 pmyeah, thanks for this, Trent Armstrong, always good to know if something is not possible.
But the solution you suggest means one textanimator for each kerning change you want to apply?
Because I dont see a way to change the kerning of several letters with one textanimator, am I right? -
Trent Armstrong
September 22, 2020 at 3:41 pmYou are correct. One Text Animator per kerning change. That also means you would need to change all the “kerning” Text Animators if you change your text. It’s a bit of a hassle, but it’s certainly possible.
I guess the other way to do it would be precomposing the text. Is there a particular problem you’re trying to solve that would keep you from doing that?
Trent
-
Kevin Camp
September 22, 2020 at 3:51 pmYou may be able to use Compound Arithmetic. I’ve used it in similar situations, but it depends on what you needs are for the ‘copied’ text layer….
Try creating a new solid and adding the Compound Arithmetic effect, then selecting your text layer as the source and ‘ARGB’ as the channels in the effect settings.
You should get a perfect copy of the text layer, however, it is a rasterized text layer which may or may not work for your needs.
-
Arne Münch
September 22, 2020 at 3:59 pmwow, this compound arithmetic thing i did not know. i will check it out.
precomping will of course also work, but as i am building kind of preset stuff for others to copy comps and change text easily, its not the best option. you would also need to use something like true comp duplicator for not overwriting existing stuff.
-
Trent Armstrong
September 22, 2020 at 5:59 pmI guess you could use Set Matte as well. But that doesn’t bring over your color attributes.
Reply to this Discussion! Login or Sign Up