You can use camera-linked lens-in-focal, lens-in-aperture and z fields in a Card node in Nuke to easily line up and correctly scale layers from a 2D image. These fields are normally used to create a pan & tile dome.
Typically, this kind of motion graphic would be accomplished in Adobe After Effects, but after the switch to node based compositing, I find the layer based approach of AE less intuitive.
Here are the Steps
- Get 2D elements
- In this case I’m using artwork by Nigel Quarless
- Export layers as tiff with transparency (if you are using a simple 8bit Photoshop file, Nuke can handle the file directly).
- Drag into Nuke DAG
- Order them from left to right, front to back
- 3d Setup
- Add a camera
- The (horiz aperture / vert aperture) should equal your project settings’ full size format (w/h) ratio. I’m working in HD (1920/1080), my horiz aperture is 24, so my vert
aperture = 24 * (1080/1920) = 13.5. - You can leave the focal length at the default 50 for now
- The (horiz aperture / vert aperture) should equal your project settings’ full size format (w/h) ratio. I’m working in HD (1920/1080), my horiz aperture is 24, so my vert
- Add a Card node (Card1) to the first FG layer
- lens-in-focal = parent.Camera1.focal (ctrl drag the focal value from camera1)
- lens-in-aperture = parent.Camera1.haperture (tcrl drag the horiz aperture value from camera1)
- z = 1
- Duplicate Card1 for each additional layer
- z = (the previous Card’s z value) + .25
For example Card2.z = parent.Card1.z+.25 and Card3.z = parent.Card2+.25
- z = (the previous Card’s z value) + .25
- Connect everything to a Scene node
- Add a camera
- Animate Camera
- Duplicate Camera1 (Camera2)
- In the Viewer, lock to Camera2
- Adjust the focal value of Camera1 so that you can see all the 2d layers.
- in my case, I had to increase the focal value to 135.
- Animate the Camera2′s z value
- position playhead at the start of the animation
- set a key for z = -2.5 (this value will change based on how many layers you have)
- position playhead at the end of the animation
- set a key for z = 0
- Final steps
- Add some 3d motion blur if you want
- I wanted the last layer to fill the frame, so I added a transform geo node after the card (see the image below)
- reformat and write out.
You can see the project for which this was completed on vimeo. Or see my previous post.




