ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

posterizeTime

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Alessio Crepaldi
posterizeTime
on Nov 13, 2019 at 5:05:16 pm

hello everybody,
new to expression and .... it's so hard

what 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 it

posterizeTime( 1.25);
random(1, 360);

and its work!! but im not happy because i had to calculate that 1.25
so i tried

f = 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);


Return to posts index

Dan Ebberts
Re: posterizeTime
on Nov 13, 2019 at 5:49:16 pm

I think you just need to convert frame duration to frame rate:

f = thisComp.frameDuration
posterizeTime((1/f )/ 20);

random(1, 360);


Dan



Return to posts index

Alessio Crepaldi
Re: posterizeTime
on Nov 13, 2019 at 8:14:45 pm

thanks
it works and makes sense now

thanks dan


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]