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

Expression to copy all text parameters to another comp

Community Beginner ,
May 16, 2022 May 16, 2022

Can I script text source to look at another text in a source comp and match sizing/kerning differences made in the source comp via script? I would need it to match kerning/text size (through character editor) per character.
So I could edit a text freely in one comp, and have those changes all update in some other comp's text I have the expression on?

TOPICS
Expressions
381
Translate
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
Community Beginner ,
May 18, 2022 May 18, 2022

Yes? No?

Translate
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
Community Expert ,
May 18, 2022 May 18, 2022

Check out 

text.sourceText.style

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

 

Most likely only works if all your text is the same format.

Translate
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
Community Beginner ,
May 18, 2022 May 18, 2022

Thanks for your response... I have tried everything on that page but this applies source of the style based on one specific letter or overall applied to the entire text. 
For text that need per character style, have that be mirrored, like the word "MacDonalds" in all caps, having smaller and larger letters be matched.

Translate
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
Community Expert ,
May 18, 2022 May 18, 2022

Yea, per character doesn't work unforunately. One of the big painpoints in expressions for text layers over the years, people often resort to multiple stacked text layers and offsetting position, it's not fun.

Translate
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
Community Expert ,
May 18, 2022 May 18, 2022

Basically, no, you can't automatically apply multiple, per-character styles via expression (or script). Once you apply an expression to Source Text all characters are going to get the same styling/formatting as the first character.

Translate
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
Community Beginner ,
May 18, 2022 May 18, 2022
LATEST

Thanks! This was basically the same snag I kept running into, wasnt sure if I was missing anything. 

Translate
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