ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Changing text color into an expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Olivier Mercier
Changing text color into an expression
on Nov 24, 2016 at 8:25:49 am

Hi, I'm a total newbie at using expression and I'm stuck

I've copy/paste a code expression for a counter from this site ( https://forums.creativecow.net/thread/227/21306 )

and had a text at the end using :

prefix + outStr + decimals + "M";
}else{
prefix + s + "M";
}


The thing is, I can't figure out how to change the color of that last letter "M"

If you guys have any solutions, please help me

Thanks


Return to posts index

Dan Ebberts
Re: Changing text color into an expression
on Nov 25, 2016 at 7:43:51 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



Return to posts index

Olivier Mercier
Re: Changing text color into an expression
on Nov 26, 2016 at 7:44:31 am

Thanks, I'll try it


Return to posts index


Olivier Mercier
Re: Changing text color into an expression
on Nov 26, 2016 at 10:01:06 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


Return to posts index

Dan Ebberts
Re: Changing text color into an expression
on Nov 26, 2016 at 4:55:50 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



Return to posts index

Olivier Mercier
Re: Changing text color into an expression
on Nov 26, 2016 at 6:59:39 pm

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

Thanks a lot !

Oliver


Return to posts index

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