Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text Expression for multiple styles and data values

Tagged: 

  • Text Expression for multiple styles and data values

    Posted by Scott Moore on January 1, 2021 at 7:23 pm

    Here is what I am trying to have AE do in an expression.

    I have 3 different text inputs, 2 from a CVS data value, and one manual. I would like to apply a different style to each text item. Then have all 3 text items on one line.

    TEXT A TEXT B TEXT C

    Instead I am getting:

    [object Object][object Object][object Object]

    with no style changes. It will apply the expression if only one text line of code is used.

    It will put the text in order, if there are no style codes used.

    That am I missing.

    V=style.setFont(“Arial-BoldMT”).setFontSize(50).setTracking(50).setFauxBold(1).setAllCaps(1).setText(footage(“HSH – AE Info.csv”).dataValue([2,0]));

    H=style.setFont(“Arial-BoldMT”).setFontSize(50).setTracking(50).setFauxBold(1).setAllCaps(1).setText(footage(“HSH – AE Info.csv”).dataValue([2,1]));

    M=style.setFont(“ArialMT”).setFontSize(50).setTracking(50).setFauxBold(0).setAllCaps(1).setText(” vs “);

    (V) + (M) + (H)

    Dan Ebberts replied 5 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    January 1, 2021 at 8:14 pm

    An expression can’t set multiple styles for different parts of the same text layer. All characters get the same style. Probably the best you can do is use different text layers for each part and position them using sourceRectAtTime().

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