Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Changing text color into an expression

  • Dan Ebberts

    November 25, 2016 at 7:43 pm

    One way that should work would be to add a Fill Color Animator, change the Range Selector’s Units to Index, and use this expression for Start:

    text.sourceText.length-1

    and this for End:

    text.sourceText.length

    Dan

  • Olivier Mercier

    November 26, 2016 at 7:44 am

    Thanks, I’ll try it

  • Olivier Mercier

    November 26, 2016 at 10:01 am

    Dan, as I said I’m a beginner at coding expression
    What is a “Fill Color Animator” ? An effect, an expression? I havent’ find it both categories

    I can’t find where to paste your expression

    Thanks your help

    Oliver

  • Dan Ebberts

    November 26, 2016 at 4:55 pm

    If you twirl open your text layer, you should see an Animate dropdown where you can select Fill Color (then RGB). That will create a Range Selector, which has the Start and End properties, where the expressions go. If you twirl open the Advanced section of the Range Selector, you’ll see the Units control, which you should set to Index.

    Dan

  • Olivier Mercier

    November 26, 2016 at 6:59 pm

    Thanks Dan ! It’s perfectly workin’
    Now I can move on with my project ?

    Thanks a lot !

    Oliver

  • Kevin Mones

    April 8, 2018 at 11:19 pm

    Reviving an old thread. wanted to change the last character of my text to a different colour. This works perfectly

    text.sourceText.length-1

    end

    text.sourceText.length

    However, if my text has a soft return (multiple lines) the expression doesn’t carry to the next line.

    text.sourceText.length-1

    text.sourceText.length

  • Dan Ebberts

    April 8, 2018 at 11:44 pm

    Try this:

    txt = text.sourceText;
    txt.length – txt.split(/\r/).length

    Dan

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