-
Change Keyframe Color Based on Expression
Hey all!
I’ve been scratching my head for too long now and I’ve decided to inquire for help. I basically have a comp containing several layers that have fill effects that are animating between two colors via holdframes.

What I’d like to do is have a master controller in the main comp that allows me to change what those two color values are – reason being I’m versioning and will need to have different color palettes for each comp.
Closest I’ve found in my searching is a chunk of code provided by DE that allows you to manipulate the color of certain keyframes using if/else. Doesn’t work for my four keys.
I’m at a loss and any help would be greatly appreciated!
Best,
Billyc1 = effect("Color Control")("Color");
c3 = effect("Color Control 2")("Color");
if (time < key(2).time)
c1
else if (time < key(3).time)
value
else
c3