Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions After Effect Checkbox Color Control Fill

  • After Effect Checkbox Color Control Fill

    Posted by Costel Letsoc on January 19, 2018 at 4:53 pm

    Hi,

    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,

    Dasher Mokum replied 7 years, 2 months ago 3 Members · 3 Replies
  • 3 Replies
  • Kevin Camp

    January 19, 2018 at 6:26 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

    [edit]

    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
    KCPQ, KZJO & KRCW

  • Costel Letsoc

    January 19, 2018 at 10:47 pm

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

  • Dasher Mokum

    June 18, 2019 at 11:16 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?

    Cheers

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