Camera Lens Blur in Adobe After Effects

The Camera Lens Blur effect in Adobe After Effects allows you to replicate realistic optical depth of field, rack focus effects, and physical bokeh shapes found in real-world camera lenses. This guide walks you through applying the effect, modifying its optical iris properties to shape your bokeh, and using a grayscale depth map layer to create realistic, distance-based blur across your footage.

Applying the Effect

  1. Select your target footage layer, or create an Adjustment Layer above your composition (Layer > New > Adjustment Layer) to blur multiple layers simultaneously.
  2. Go to the top menu and select Effect > Blur & Sharpen > Camera Lens Blur.
  3. In the Effect Controls panel, increase the Blur Radius to set the overall strength of the blur.

Customizing the Iris (Bokeh Shape)

The Iris section defines how highlights scatter when out of focus, producing the distinct look of specific camera lenses.

  • Shape: Choose the number of aperture blades (e.g., Fast Rectangle, Hexagon, Decagon, or Circle). A lower number creates sharper polygonal bokeh, while a higher number or circle simulates modern, rounded aperture blades.
  • Blade Curvature: Softens the edges of the aperture blades to make the bokeh circles appear more rounded or curved.
  • Rotation: Rotates the orientation of the bokeh polygons across the screen.
  • Diffraction Fringe: Adds chromatic aberration around the perimeter of the bokeh highlights, mimicking optical lens imperfection.
  • Aspect Ratio: Modifies the vertical and horizontal proportions of the bokeh to simulate anamorphic lens distortion.

Using a Depth Map (Blur Map)

To create a realistic depth of field where objects close to the camera remain sharp while background elements blur, you must define a Blur Map.

  1. Import or create a grayscale depth matte (a layer where white represents the farthest distance and black represents the closest point, or vice versa).
  2. Place this depth matte layer inside your composition and turn off its visibility.
  3. In your main layer's Camera Lens Blur settings, locate the Blur Map section.
  4. Set the Layer property to your depth map layer. Set the source property dropdown to Effects & Masks.
  5. Adjust the Blur Focal Distance slider. This determines which grayscale value remains completely in focus. Areas matching this value will stay sharp, while areas lighter or darker will blur based on the Blur Radius.
  6. Check Invert Depth Map if the near and far focus planes are reversed.

Creating a Rack Focus Animation

  1. Move the timeline playhead to where you want the focus transition to begin.
  2. Click the stopwatch next to Blur Focal Distance (when using a depth map) or Blur Radius (for a standard full-frame blur) to create an initial keyframe.
  3. Move the playhead forward in time to where the focus shift should conclude.
  4. Adjust the value to bring your new subject into focus.
  5. Select both keyframes and press F9 to apply Easy Ease, creating a smooth, organic optical transition.

Performance Optimization

The Camera Lens Blur effect is computationally intensive. While working in your composition:

  • Lower your composition preview resolution to Half or Quarter.
  • Uncheck Repeat Edge Pixels only if necessary, as enabling it fixes dark borders at the edges of the frame but uses more processing power.
  • Temporarily disable the effect using the fx toggle in the timeline when timing other animations, and re-enable it before your final render.