Cinematographers love to pull focus from a sharp foreground to a sharp background, letting the rest of the frame go out of focus. Sometimes it’s impossible to get this effect in-camera, and sometimes you only realise you want it after you’ve shot it.
To create this look in After Effects, use one adjustment layer to create the blur. By quickly masking off parts of the image, and animating the mask opacities, you make it look as though focus is blending from foreground to background. The new Mask Feather tool in After Effects CS6 perfects this technique in a few clicks, so you can add this look to your own shots with minimal effort.
01 Open Violin.mov, go to Layer> New>Adjustment Layer, apply a Gaussian Blur and set the blurring to 25. Apply Camera Lens Blur, but switch it off for now, to speed things up. Use the Pen tool to draw a mask around the background of the frame.
02 Select this mask covering the girl and the wall, and go to Edit>Duplicate. Name one mask ‘Foreground’ and the other ‘Background’. Go to the four second mark, and press M until Mask Opacity appears. Reduce the foreground mask opacity to 0, and leave the background mask opacity at 100. Click the keyframe stopwatch for each.
03 Move the playhead forward by about a second and a half, and then reverse the opacity of the masks. That is, set the opacity of the background mask to 0, and the opacity of the foreground mask to 100. Play through the footage and you will see the basic effect. But the mask edges are too abrupt at the moment, so some adjustment is required.
04 Select the Mask Feather tool, then click the foreground mask in your timeline. Click on the mask, somewhere near the violin chin rest, between two of the mask points, and drag down the screen. This feathers the mask outwards, to soften the edges. Somewhere near the edge of the sheet music, click on the dotted line and drag it back in towards the mask, to feather it inwards.
05 For the background mask, you might find that hitting the F key and adjusting the mask feather is sufficiently accurate. If not, use the Mask Feather tool to create a mask on both sides of the background mask. Drag the dotted line a few pixels away from the sheet music. Switch off the Gaussian Blur, turn on the Camera Lens Blur and hit Render to finish.