Skip to main content
Participant
May 15, 2022
Question

Why I can't animate keyframes of a color control?

  • May 15, 2022
  • 1 reply
  • 587 views

I have multiple pre-compositioned elements linked to a null object with a color control. It's working to change those all colors at once but when I hit the stopwatch on the color of a  null object to animate the colors it's not working. I found an information that it should be working just like any other element with a stopwatch but it's not, please help

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
May 15, 2022

You have to add another keyframe at a different time with a different color to get it to animate. Just move the current time indicator to a new time and change the color (the new keyframe should happen automatically). Sorry if you knew this already.

Participating Frequently
May 15, 2022

Same issue - thanks for the anwer but I do know how to animate in general. The issue only appears when I'm doing the same thing I would do for changing a rectangle's color, but on a color control - then it's not working

Dan Ebberts
Community Expert
Community Expert
May 15, 2022

Ah, OK. I suspect that you have colors in a precomp linked to controls in a main comp, but the precomp layers in the main comp don't start at time = 0. If that's the case, you need to compensate for the offset start time. So where you have an expression like this in the precomp:

 

comp("Main").layer("controls").effect("Color Control")("Color")

 

you need to change it to something like this:

 

C = comp("Main");
ctrl = C.layer("controls").effect("Color Control")("Color");
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)