Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Every X frames, jump Y pixels

  • Every X frames, jump Y pixels

  • Navarro Parker

    November 15, 2015 at 3:44 am

    I’d like to get a solid to move X amount of pixels, every 5 frames using Hold interpolation. Kind of like an 8-bit video game animation. Any ideas?

  • Kalleheikki Kannisto

    November 15, 2015 at 6:29 pm

    I’d probably add a Point control for the solid with the expression

    step = 100;// the amount of pixels you want to move
    effect("Point Control")("Point")*step

    For “every 5 frames” you could set the frame rate of the comp to 5 fps.

    And then animate using the point control.

  • Navarro Parker

    November 16, 2015 at 4:31 am

    A little confused. So this would go in my Solid’s position attribute?

    Setting the comp FPS low is unfeasible as I have other layers that need to move at different rates.

  • Kalleheikki Kannisto

    November 16, 2015 at 9:42 am


    Yes, add a point control to your solid and the expression to the solid’s position. Precomp the solid moving all attributes and set it to 5fps. If your main comp is 25 fps this won’t have any other effect except that it’ll be easier to move the solid in 5-frame steps, as you can step forward as many frames as you want to move the solid. For instance, step 5 frames forward and add 5 to the x value of the point control for the new keyframe.

    Keeping the main comp 25 fps, you can use Posterize Time Effect set to 5 fps for the precomped solid.

    This is all assuming you want to manually control the animation of your solid.

Viewing 1 - 4 of 4 posts

Log in to reply.

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