ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

After Effect Checkbox Color Control Fill

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Costel Letsoc
After Effect Checkbox Color Control Fill
on Jan 19, 2018 at 4:53:14 pm


I have an issue and I can't seem to figure out what to do ... and getting some expression errors

Want to create a list of 5 Checkbox list that has assigned an individual colour assigned to it and using and Adjustment Layer to control the Fill Color of an Highlighted Text

temp = thisComp.layer("Adjustment Layer 4").effect("Color Control")("Color"); is assigned to a Text Layer/ Range Selector that Changes the Fill Colour
I want to change that respective Colour using Some Checkboxes.

Thank you,

Return to posts index

Kevin Camp
Re: After Effect Checkbox Color Control Fill
on Jan 19, 2018 at 6:26:44 pm
Last Edited By Kevin Camp on Jan 19, 2018 at 6:29:42 pm

you can't really do it with checkboxes... you will encounter logic issues when trying to execute expressions that are dependent on other expressions.

you can do it with a slider, so 1 would be a color, 2 would be another color, etc...

also, unless you like writing colors in rgb values, i would keyframe the colors you want in the color picker, then use an expression on that color control to the value.

so if you add a sider expression control to your layer, the expression for the color control could look like this:

n = effect("Slider Control")("Slider") ;
key( Math.floor( clamp( n, 1, numKeys ) ) ).value


i just tested it and you can omit the Math.floor bit... so this works for the last line:

key( clamp( n, 1, numKeys ) ).value

Kevin Camp
Art Director

Return to posts index

Costel Letsoc
Re: After Effect Checkbox Color Control Fill
on Jan 19, 2018 at 10:47:19 pm

Thank you very much for your help I've managed to do it this way, it works!

Return to posts index

Dasher Mokum
Re: After Effect Checkbox Color Control Fill
on Jun 18, 2019 at 11:16:54 pm

Hi Kevin,

Nice expression and I got it working. But I am looking for the next solution for this. I've got a precomp with a text layer & Color control layer, this one is nested inside the main comp.

Is it possible to put a color control layer in the main comp and link that to the text layer in the precomp?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved