Tutorial 101: 2D-3D Parallax @Workbenchtv
Tutorial 101: 2D-3D Parallax  @Workbenchtv
Uploaded December 2017 | Updated November 2026, 4 days ago
How to set up parallax by tying position with animation inside a precomp
Workbench: workbench.tv/tutorials/2017-12-15_2D-3DParallax
Patreon: patreon.com/workbench
Merch: workbench.tv/products/merch
Paypal: paypal.me/workbenchtv

Social
***********************************************************
Instagram: instagram.com/workbenchtv
Twitter: twitter.com/workbench_tv
Facebook: facebook.com/workbenchtv

This week we look at a useful way to map a precomp's frames to its position on screen. This allows us to fake a 3D rotation as things move across screen. You basically animate shape layers to the extreme positions, add our expression, and you're done. You can also do this with 3D layers. Just rotate them a little bit and bring them in. In this example I animated the trees by putting a null in the middle of them, parenting a camera to that null, and then rotating the null 60° over 180 frames. Then, back in After Effects, you can either parent these layers to a null and animate the null's position or just animate their position directly.

Layer Dolly Expression:
//Remap time to rotate house as they dolly by
s = this.source.name;
end = comp(s).duration;
x = this.toWorld(this.anchorPoint)[0];
linear(x,2052,-152,0,end);

This was changed from the version in the video where the duration of the layer was hard coded into the expression. This will grab the duration of the layer from its source precomp. That should allow the precomps to be at a different frame rate from the main comp if that is desired.

If you have any questions, ask them. If not, see you next week!
Tutorial 101: 2D-3D ParallaxTutorial 114: Audio-Based Glitch MapsHow to isolate effects from footage to make them more interesting - Tutorial 150: Isolated EffectsNewest After Effects plugin available, and its free!Using Voronoi fracturing to Reveal a Logo in Cinema 4D ​- Tutorial 159: Logo DestructionGenerate L-system Style Paths in After EffectsGlitchlord Data & UI - An element pack to enhance your workTutorial 62: Slice Like a NinjaTutorial 37: Glitch Text 02Introduction to Nodebox - Tutorial 167Tutorial 46: Simple FireUsing Cinema 4D to Create an X-Particle City - Tutorial 157: Particle City
Workbench |

Tutorial 101: 2D-3D Parallax

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER