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

ExtendScript: control font settings of substrings within a layer

Community Beginner ,
Feb 20, 2020 Feb 20, 2020

Copy link to clipboard

Copied

Heyo!
I'm trying to automate the creation of the same comp but with different text and fonts

Some layers have text different font styles (e.g. "Hello world!").

I would like to be able to insert text (e.g. "Goodmorning planet!") and specify what style each word has (ideally, "Goodmorning planet!")

But by changing the text of the TextDocument object, it defaults all the text to a single font style (the one of the first character).

 

Is there a way to specify character-per-character which font to use?

Maybe there is an option that allows AE to read text as it was Markdown (e.g. **this text is bold** = this text is bold)

 

Thank you for the help!

TOPICS
Expressions , How to , Scripting , SDK

Views

329

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
LEGEND ,
Feb 21, 2020 Feb 21, 2020

Copy link to clipboard

Copied

You could apply one of them new text style expressions...

 

Mylenium

Votes

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
Community Beginner ,
Feb 28, 2020 Feb 28, 2020

Copy link to clipboard

Copied

Hi,

could you please provide a link to these new text style expressions?
Thank you for your help!

Votes

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
New Here ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

Yeah Markdown would be so nice! especially in connection with essential graphics. I would like to have more design options!

Votes

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
New Here ,
Nov 19, 2022 Nov 19, 2022

Copy link to clipboard

Copied

LATEST

We cant change font style one by one(using expression) https://ae-expressions.docsforadobe.dev/text-style.html 

Votes

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