Skip to main content
Participating Frequently
May 15, 2022
Answered

Animate color control

  • May 15, 2022
  • 2 replies
  • 2336 views

Hello, I have a problem with color control animation - the null object that controls the fill of multiple shapes is working to change them all at once, but when I try to animate it, it's not changing them, please help

This topic has been closed for replies.
Correct answer Dan Ebberts

That would be perfect, but how to do that? For a pre-comp layer I can only see the regular Transform properties to animate?


Select the precomp layer, then Effect > Color Correction > Change to Color, set the From color and animate the To color, maybe?

2 replies

Community Expert
May 16, 2022

You will need an expression that takes the loop into account. I don't have time to do that this morning. I think Dan Ebberts proposed a solution in another thread. Was that your thread?

Participating Frequently
May 16, 2022

Yes, I posted that solution here too:

C = comp("composition where your color control is");
ctrl = C.layer("color control layer").effect("Color Control")("Color");
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)

But it did not work unfortunately 😕😕 I replaced comp("composition where your color control is").layer("color control layer").effect("Color Control")("Color") with that and tried to animate but still no animation

Dan Ebberts
Community Expert
May 16, 2022

My guess is that your animation happens outside the time range which is looped via the precomp time remapping. So the loop just shows the first part over and over, and never gets to the color change.

Community Expert
May 16, 2022

We need to see your expressions to figure out what went wrong. A simple pickwhip from one color to an Expression Controls/Color Controller should do the trick. All you should need to do is set keyframes for the Color Controller.

I have included a movie and a project file.

 

Participating Frequently
May 16, 2022

@Rick Gerard thank you for your reply, it's not working for me, probably because I'm trying to animate a color of a looped precomposition. This is how I looped a text and a shape below, how do I animate the color now in the main comp?

 

https://www.youtube.com/watch?v=r4R47Ihv_r4

Participating Frequently
May 16, 2022

If that's the case you should reference the pre-comp in your expression. You can try using:

 

comp("composition where your color control is").layer("color control layer").effect("Color Control Effect").color


@Nebojsa Savicic that would be the expression I got after linking it to the control:
comp("composition where your color control is").layer("color control layer").effect("Color Control")("Color")


to be exact. 
I tried changing the last part like you suggested but with no result. In other thread I got a reply that since it's looped the timing should be adjusted and the code should be like:

 

C = comp("composition where your color control is");
ctrl = C.layer("color control layer").effect("Color Control")("Color");
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)

 

But that didn't work either 😕😕 I can't believe it's that hard to simply change a color of a looped element in AE