Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Adjusting baseline of text dynamically connected via expressions…

  • Adjusting baseline of text dynamically connected via expressions…

  • John Gardner

    May 4, 2021 at 8:15 pm

    Hi,

    I have lots of text layers that are dynamically populated from a spreadsheet. And I have text layers in another comp, and their text properties are hooked up via expressions to the spreadsheet text. So I essentially see the output of the spreadsheet text in another comp. The problem I run into is if I need to adjust a character via the character tool (for example, adjusting the baseline of a registration mark), as expressions can’t access this information. So even if I were to adjust the baseline of the master text, that info would not flow upstream to the text dynamically connected via expressions. Has anyone discovered a good method to get around this limitation in context of managing large amounts of text?

    Thanks,

    John

  • Andrei Popa

    May 5, 2021 at 5:14 am

    I use a text animator for this. Just add a text animator and set the position and scale to look like superscript(or whatever different style you need), add an expression selector and add this expression to the selector

    txt = text.sourceText.replace(/\r/g,"").split("");
    "®™sd".indexOf(txt[textIndex-1]) != -1 ? 100 :0

    Replace the “®™sd” string with the characters you want to adjust. Downside is that they will be adjusted everywhere, so if you want one to be adjusted just in one place, this does not work.

  • John Gardner

    May 5, 2021 at 12:10 pm

    Thanks a bunch! Will try it out!

  • John Gardner

    May 5, 2021 at 1:18 pm

    This is awesome, thanks for sharing!! Based on your solution, I also found this..

    https://www.youtube.com/watch?v=wgiaNEQit3g&t=394s

    Anyone actually know how he is getting this script to work? I plug in the expression into the expression selector, and nothing takes place.

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Andrei Popa

    May 5, 2021 at 1:46 pm

    That is quite an impressive rig he created there.

    As he mentions in the video, you need to change the name of the animator. From “Animator 1” to whatever you need. But I would not go with this huge expression unless I really need it. It is quite long and with more texts that have this, your render time will increase.

  • John Gardner

    May 5, 2021 at 4:07 pm

    Thanks again for all your advice! Its working great!

  • John Gardner

    May 5, 2021 at 5:29 pm

    Yeah, the other thing that you must do to make the script work is adjust the “amount” to 1.0,0,0%

Viewing 1 - 7 of 7 posts

Log in to reply.

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