Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • posterizeTime

  • Alessio Crepaldi

    November 13, 2019 at 5:05 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);

  • Dan Ebberts

    November 13, 2019 at 5:49 pm

    I 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 pm

    thanks
    it works and makes sense now

    thanks dan

Viewing 1 - 3 of 3 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy