Activity › Forums › Adobe After Effects Expressions › Every X frames, jump Y pixels
-
Every X frames, jump Y pixels
Posted by Navarro Parker on November 15, 2015 at 3:44 amI’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 replied 10 years, 9 months ago 2 Members · 3 Replies -
3 Replies
-
Kalleheikki Kannisto
November 15, 2015 at 6:29 pmI’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")*stepFor “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 amA 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 amHi,
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.
Reply to this Discussion! Login or Sign Up