Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions PosterizeTime problem

  • PosterizeTime problem

    Posted by John Felt on July 30, 2009 at 6:44 pm

    Hello all

    I am trying animate a quick thing and need to have to different assets move every 6 frames. Rather than use hold keyframes, I just used the posterizeTime expression. However I ran into a hitch, and was wondering if anyone can offer some help.

    The two assets need to move in an offset manner. So for example, at frames 0, 6, 12, 18, 24, the first asset moves. At frames 3, 9, 15, 21, 27 the other asset moves. Im sure you get the picture. I used the posterizeTime(5) expression.

    The problem is that they both move at the exact same time. Is there a way to delay one and have move 3 frames later?

    Thanks
    John

    John Felt replied 16 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Filip Vandueren

    July 30, 2009 at 7:20 pm

    Hi John,

    I think this cannot be done using posterizeTime. This does work:


    fps=5;
    phase=180;

    posTime =(Math.floor(time*fps+phase/360)-phase/360) /fps;
    valueAtTime(posTime);

    I hope the ‘phase’ metaphor speaks for itself.

    This assumes that you’re just posterizing keyframes via value.
    If you were posterizing an expression, it is probably based on time.
    Just put this at the beginning and in the rest of the expression use posTime instead of time.

  • John Felt

    July 31, 2009 at 7:34 pm

    Thanks so much, Im going to give this a try, Ill let you know how it comes out!

  • John Felt

    July 31, 2009 at 8:26 pm

    That worked great.

    Thanks!

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