Mobile app version of vmapp.org
Login or Join
Samaraweera207

: After Effects: Expression to randomly change to specific Color Balance (HLS) Effect Hue Color, every x frames In AfterEffects, I'd like to use the Color Balance (HLS) layer effect to Hue shift

@Samaraweera207

Posted in: #AdobeAfterEffects

In AfterEffects, I'd like to use the Color Balance (HLS) layer effect to Hue shift every x frames. At that point, I'd like the effect to randomly shift to any one of three distinct hues (angles).

I'm not sure what expression could achieve this.

For example, I'm using this expression now for Hue (Alt+Klick the keyframe clock icon):

x = 14.693877554;
f = thisComp.frameDuration * x; //The duration in seconds of 'x' frames in this composition

posterizeTime(1 / f); //Evaluate everything after this line every x frames

random(1, 360);


x is the amount of frames that should pass before attempting the Hue shift (it's timed to a song in 98 bpm). The above expression randomly selects any angle rotation.

How could I make it shift only to any of three specific angles?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera207

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme