Forums › Adobe After Effects Expressions › posterizeTime
posterizeTime
Alessio Crepaldi
November 13, 2019 at 5:05 pmhello everybody,
new to expression and …. it’s so hardwhat i have:
timeline 5sec with 25fps
I have a circle and i want to change its color every 20sec.
on the circle i applied “change color” effect. I opened its “HUE” property and wrote in itposterizeTime( 1.25);
random(1, 360);and its work!! but im not happy because i had to calculate that 1.25
so i triedf = thisComp.frameDuration
posterizeTime(f / 20);
random(1, 360);but it doesnt work ☹
any help? maybe there is a better way to change color of an object overtime ??
f = thisComp.frameDuration
posterizeTime(f / 20);random(1, 360);
Dan Ebberts
November 13, 2019 at 5:49 pmI think you just need to convert frame duration to frame rate:
f = thisComp.frameDuration
posterizeTime((1/f )/ 20);random(1, 360);
Dan
Alessio Crepaldi
November 13, 2019 at 8:14 pmthanks
it works and makes sense nowthanks dan
Log in to reply.