I am working on making some videos for YouTube, in which i want some of my layers to rotate through preferably colors of my choice throughout the video. I understand how to rotate colors with key-frames but that is too tedious to place key-frames throughout the entire video of the colors i want for each layer, so I was wondering if anyone could give me an expression or an effect that would allow me to do this.
You can try an expression like this: hue = 0;
sat = 1;
light = .5;
hsla = [hue,sat,light,1];
hsla = hsla + [((time/thisComp.frameDuration)%360)/360,0,0];
But that's not the best way because it's not easy to control or predict, but it'll cycle through the hues. It'd be easier to use an effect that has a cycling type of property and put a time expression on that property like:
You could use the hue/sat effect to get something similar to the above expression. But the best way, if you're looking to get specific hues is to use the old school Colorama effect. You can change the output cycle to use just the colors you're looking for, and then you can put a time expression, like the one above, on the "Phase Shift" property. I hope that's what you're after!