Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions posterize time via expressions !

  • posterize time via expressions !

    Posted by Topevil on September 30, 2005 at 10:25 am

    I try to make progress bar. I made first solid and animate scale[0] from 0 to 100 in 10 seconds. Now I want that values dont go all from 0 to 100 but let say value changes only every 1 second so from smoothe animation to coarse like slow computers progress bar.

    Jacek Skro replied 13 years, 4 months ago 3 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    September 30, 2005 at 2:28 pm

    You can use an expression like this with your keyframes:

    posterizeTime(1);
    value

    Or one like this to do the whole thing (without keyframes):

    posterizeTime(1);
    linear(time,0,10,[0,100],[100,100])

    Dan

  • Topevil

    September 30, 2005 at 6:12 pm

    Yes it works fine, but what to do if I whant progres bar to move only every half second? as far i understand smalest number for posterizet time alowed is 1 !?

  • Dan Ebberts

    September 30, 2005 at 8:09 pm

    For twice a second it would be:

    posterizeTime(2);
    linear(time,0,10,[0,100],[100,100])

    For once every two seconds it would be:

    posterizeTime(.5);
    linear(time,0,10,[0,100],[100,100])

    Dan

  • Topevil

    October 1, 2005 at 7:33 am

    Thank you Dan ! Now I understand posterize time funcion and use of it !!!

  • Jacek Skro

    February 9, 2013 at 6:50 pm

    there is a way to “shift” posterization of time by some amount of frame(s)?

    when I use:

    posterizetime(12);
    value

    on keyframed Position property then Position change on every even frame (0, 2, 4, 6, etc.). but I want that this posterization (change of Position value) was done on every odd frame (1, 3, 5, 7 …).

    is this possible with expression?
    (btw I can’t change comps length by adding one frame to it’s begining)

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