ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Using a expression to change a paragraph alignment.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lucas Malaquias
Using a expression to change a paragraph alignment.
on Mar 30, 2020 at 7:44:30 pm

Hey, guys!

Recently, I've been exploring the new possibilities for text expressions in After Effects 2020. I am currently using this expression to change my font based on a value.

--

var array=[
"font-01",
"font-02",
"font-3"

];

style.setFont(array[0])

--

My problem is. My second font (font-02) is supposed to be an Arabic font. Which should be aligned to the right instead of left like in most other languages like English, spanish etc.

So, is there anyway that I can achieve that with the new tools in AE2020? How can I modify this expression to make sure that the second font is always aligned to the right. And fonts 01 and 03 always aligned to the left?

var array=[
"font-01",
"font-02",
"font-3"

];

style.setFont(array[0])


Return to posts index

Tomas Bumbulevičius
Re: Using a expression to change a paragraph alignment.
on Apr 4, 2020 at 9:19:47 am

Hey Lucas, the question here also relies on actual positioning of your text layer.

Think about this - if you change alignment of a text to right, how and where it must be placed in your design / composition?

Ideally, you should better define two text layers - one for left alignment languages, other - right. And then switch their opacity based on font selection choice.

Find out more:
Motion Graphics Design & After Effects Tutorials
On YT
On VH


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]