Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Using a expression to change a paragraph alignment.

  • Using a expression to change a paragraph alignment.

  • Lucas Malaquias

    March 30, 2020 at 7:44 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])

  • Tomas Bumbulevičius

    April 4, 2020 at 9:19 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

Viewing 1 - 2 of 2 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy