ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Bolding specific words from dynamically sourced text

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Matt Miller
Bolding specific words from dynamically sourced text
on May 15, 2019 at 8:50:55 pm

I am using a plug-in that references an external text file to dynamically populate different text fields in an After Effects composition. I need to be able to bold specific words within a text field and I was hoping I could do it using an expression or a script.

I was hoping specifically that I could use some type of identifier in my text file to let the expression/script know what words to bold.

Example Text: Available on new 2019 Santa Fe vehicles purchased from dealer stock between *5/1/19 and 6/3/19.*

Available on new 2019 Santa Fe vehicles purchased from dealer stock between 5/1/19 and 6/3/19.

In this case, everything between the asterisks would be bolded.

Does anyone have any experience with something like this?

Thanks!


Return to posts index

Dan Ebberts
Re: Bolding specific words from dynamically sourced text
on May 15, 2019 at 9:29:45 pm

Unfortunately, expressions and scripts don't have access to per-character formatting, and if the text is modified by a script or expression, all characters acquire the attributes of the first character.

You could do your example with a script, if the script created a separate layer for the bold part, applied the bold font to that part, and then aligned the two pieces, but it would probably get messy if you had a bunch of bold sections.


Dan



Return to posts index

Oleg Pirogov
Re: Bolding specific words from dynamically sourced text
on May 16, 2019 at 12:20:09 am

As Dan have said, you can't set part of a text to bold through expressions. You may, however, apply different stroke width to different parts of the text through text animator.

Increasing stroke width will get you "kinda bold" look, which may or may not be a suitable workaround for you, depending on how much you care about font neatness.


Return to posts index


Tomas Bumbulevičius
Re: Bolding specific words from dynamically sourced text
on May 16, 2019 at 11:53:42 am

Totally agree. What helps in relation with a stroke width though - applying a bit of tracking to selected/highlighted portion of text, which allows to give some breathing space.

Find out more:
After Effects Tutorials: motion design, expressions, scripting.


Return to posts index

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