-
Using a expression to change a paragraph alignment.
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])