• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

I wish that when Text layer gets its text via expression, that all formatting came with it

Contributor ,
Nov 02, 2022 Nov 02, 2022

Copy link to clipboard

Copied

I have a project with many comps that have similar text in them. I wanted to use expressions to link each text layer to a Primary comp that would control all the other text layers. This way, all the comps automatically have the same text as the Primary comp, and if I fix a typo in the primary comp, all the layers pointing to it automatically update.

The expression I'm using on the "subscribing" text layer looks like this:

comp("PrimaryComp").layer("[TEXT LAYER] 04-TextLayer").text.sourceText

 It works to get the text from the 04-TextLayer in PrimaryComp, but the text formatting doesn't appear the same. 

Hence my wish that formatting would appear in the layers using this expression.

Idea No status
TOPICS
Expressions

Views

124

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
4 Comments
Participant ,
Nov 03, 2022 Nov 03, 2022

Copy link to clipboard

Copied

var ref = comp("PrimaryComp").layer("[TEXT LAYER] 04-TextLayer").text.sourceText;
ref.style.setText(ref);

Votes

Translate

Translate

Report

Report
Contributor ,
Nov 03, 2022 Nov 03, 2022

Copy link to clipboard

Copied

Thank you, how can I get this via the pickwhip?

Votes

Translate

Translate

Report

Report
Contributor ,
Nov 03, 2022 Nov 03, 2022

Copy link to clipboard

Copied

I used your expression, however it does not help. It behaves the same way as when I use the pickwhip to create the expression in my original post. The Primary comp's text layer includes text of different font sizes. When I use expressions, either what AE generates or with yours, the different text sizes do not come across into the expressioned layer.

Votes

Translate

Translate

Report

Report
Participant ,
Nov 04, 2022 Nov 04, 2022

Copy link to clipboard

Copied

LATEST

What is your version of after effects?

Votes

Translate

Translate

Report

Report