1 Reply Latest reply on Sep 14, 2016 3:15 AM by Mylenium

    Expressions for SourceText

    stasp36061023 Level 1

      I'm going to do two texts in a single layer, one can change and wakes the other wakes up to automatically add

       

      computer Type: PC

       

      Exemple expression for SourceText:

      "Text placeholder 1" + "\n" + text.sourceText

       

      but I want to text color was different

       

      Exemple:
      Text placeholder 1
      Text placeholder 2

       

      ie I want to use something like: fontColor, fontSize

      Exemple: "Text placeholder 1".fontColor("Blue").fontSize("18") + "\n" + text.sourceText.fontColor("Red").fontSize("36")

       

      how to make this expression ?

      thank you in advance.

        • 1. Re: Expressions for SourceText
          Mylenium Most Valuable Participant

          You cannot control text formatting in expressions and that is that. You can only manipulate the text string. Everything else will have to be done using text animators, which in your case is easy as pie when you set the animator's mode to be by line and apply animators for font size/ scale and fill color.

           

          Mylenium