Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Styles for dynamic SourceText

  • Styles for dynamic SourceText

    Posted by Dmitry Volkov on June 26, 2021 at 6:28 pm

    Is it possible to apply any text style AFTER creating text.sourceText using expression? For example, when I use in same layer:

    1. text.sourceText = any_function_like_concat(t1, t2);

    2. style.setTracking(-100);

    second string doesn’t work. If I manually pre-assign any value to “sourceText” then second string will apply to that value, the first line is completely ignored. If I delete second string then first string work correctly.

    Help, please. I need to generate text string and if its width is too large, I must change tracking and font size. I can’t know width of string before creating and can’t apply any style after it 🙁

    Andrei Popa replied 5 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    June 27, 2021 at 6:21 am

    You need to assign the text the same way as the tracking. Instead of your two lines, you can use this

    style.setTracking(-100).setText(any_function_like_concat(t1, t2));

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