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

How can I smooth text slider expression

New Here ,
Feb 05, 2024 Feb 05, 2024

Copy link to clipboard

Copied

Hey

I am new to after effects so if you can explain to me what to do. I need to smoother animation for this text expression.

How can I do it? This is a what I use:

 

var array=[ "ClashGroteskVariable-Extralight", "ClashGroteskVariable-Light", "ClashGroteskVariable-Regular", "ClashGroteskVariable-Medium", "ClashGroteskVariable-Semibold", "ClashGroteskVariable-Bold", ];

r = Math.round(thisComp.layer("Slider Control").effect("Font Weight")("Slider")); style.setFont(array[r]);

 

 

TOPICS
Expressions , How to , Scripting

Views

91

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

correct answers 1 Correct answer

Community Expert , Feb 05, 2024 Feb 05, 2024

Fonts won't blend. When a style changes, it's an on/off switch. Expressions don't make it any different. A change in any text property with an expression is instantaneous.

 

You'll need multiple layers and some kind of dissolve or distortion effect. The other option would be to convert text to shape layers and animate the paths, but that could also be a real mess.

Votes

Translate

Translate
Community Expert ,
Feb 05, 2024 Feb 05, 2024

Copy link to clipboard

Copied

Fonts won't blend. When a style changes, it's an on/off switch. Expressions don't make it any different. A change in any text property with an expression is instantaneous.

 

You'll need multiple layers and some kind of dissolve or distortion effect. The other option would be to convert text to shape layers and animate the paths, but that could also be a real mess.

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
Adobe Employee ,
Feb 11, 2024 Feb 11, 2024

Copy link to clipboard

Copied

LATEST

You've got the right idea, but you are mssing what is special about Variable fonts - which this is: your table entries are all the named instances but as this is a Variable font there are an infinite number of custom instances available if you use a custom design vector.

 

This font has one design axis, with a tag "wght" and min:200 max:700

 

So what you need to do is dynamically construct PostScript names between these two limits:

 

"ClashGroteskVariable_200wght" and "ClashGroteskVariable_700wght"

 

You can build those into your array (_250_wght, _300wght, etc) or you could dynamically build it by taking the prefix "ClashGroteskVariable" and append an underscore, the axes value you design and the axis tag.

 

The Scripting API can be useful for uncovering information about fonts in general.

 

Fonts.getFontsByPostScriptName()

Font.designAxesData()

 

Douglas Waterfall

After Effects Engineering

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