Sapphire Plug-ins for After Effects: DefocusPrism


Defocuses the color channels of the source clip into rings of different widths.

In the Sapphire Blur+Sharpen effects submenu.


Source: The current layer. The clip to be processed.

Mask: Defaults to None. Interpolate between the result and the Source input. White areas use the result of the effect. Black areas use the Source clip.


Load Preset: Push-button .
Brings up the Preset Browser to browse all available presets for this effect.

Save Preset: Push-button .
Brings up the Preset Save dialog to save a preset for this effect.

Mocha Project: Default: 0, Range: 0 or greater.
Brings up the Mocha window for tracking footage and generating masks.

Blur Mocha: Default: 0, Range: 0 or greater.
Blurs the Mocha Mask by this amount before using. This can be used to soften the edges or quantization artifacts of the mask, and smooth out the time displacements.

Mocha Opacity: Default: 1, Range: 0 to 1.
Controls the strength of the Mocha mask. Lower values reduce the intensity of the effect.

Invert Mocha: Check-box,  Default: off.
If enabled, the black and white of the Mocha Mask are inverted before applying the effect.

Resize Mocha: Default: 1, Range: 0 to 2.
Scales the Mocha Mask. 1.0 is the original size.

Resize Rel X: Default: 1, Range: 0 to 2.
The relative horizontal size of the Mocha Mask.

Resize Rel Y: Default: 1, Range: 0 to 2.
The relative vertical size of the Mocha Mask.

Shift Mocha: X & Y,   Default: [0 0], Range: any.
Offsets the position of the Mocha Mask.

Bypass Mocha: Check-box,  Default: off.
Ignore the Mocha Mask and apply the effect to the entire source clip.

Show Mocha Only: Check-box,  Default: off.
Bypass the effect and show the Mocha Mask itself.

Combine Masks: Popup menu,  Default: Union .
Determines how to combine the Mocha Mask and Input Mask when both are supplied to the effect.
Union: Uses the area covered by both masks together.
Intersect: Uses the area that overlaps between the two masks.
Mocha Only: Ignore the Input Mask and only use the Mocha Mask.

Defocus Width: Default: 0.088, Range: 0 or greater.
The width of the defocus. This parameter can be adjusted using the Defocus Width Widget.

Rel Height: Default: 1, Range: 0.01 or greater.
The relative height of the iris shape. If it is not 1, circles become ellipses, etc.

Shape: Popup menu,  Default: Circle .
Determines the shape of the simulated camera iris.
Circle: round.
3 sides: triangle.
4 sides: square.
5 sides: pentagon.
6 sides: hexagon.
7 sides: etc.

Show Shape: Check-box,  Default: off.
Show the iris shape instead of the defocused image.

Roundness: Default: 0, Range: any.
Modifies the shape of the simulated camera iris. A value of 1 produces a circle; 0 gives a flat-sided polygon with a number of sides given by the Shape parameter. Less than 0 causes the sides to squeeze inward giving a star shape, while a value greater than 1 causes the corners to squeeze inward, giving a flowery shape. Has no effect if the Shape is set to Circle.

Rotate: Default: 0, Range: any.
Rotates the iris shape.

Bokeh: Default: 0, Range: any.
Softens the outer edge of the iris shape, which gives a softer look to the defocused highlights. A negative value darkens the center of the iris shape, producing a ring-like defocus shape.

Lens Noise: Default: 0, Range: 0 or greater.
Increase to add noise to the iris shape, dirtying up the defocus a little. Can make the result more realistic. Turn up past 1 for a more stylistic result.

Noise Freq: Default: 40, Range: 0.01 or greater.
The frequency of the added noise. Ignored if Lens Noise is zero.

Noise Freq Rel X: Default: 1, Range: 0.01 or greater.
The relative horizontal frequency of the added iris noise. Increase to stretch it vertically or decrease to stretch it horizontally.

Noise Seed: Default: 0.123, Range: 0 or greater.
The seed value for the added noise. To make the noise appear different on each frame, animate this to be different on each frame. The actual value doesn't matter; only that it's different.

Gauss Blur: Default: 0, Range: 0 or greater.
If positive, a gaussian blur is also applied which smooths out the edges of the shapes. This might also darken the highlights because Gamma is not considered in the gaussian blur.

Use Gamma: Default: 1, Range: 0.1 or greater.
Values above 1 cause highlights in the source clip to keep their brightness after the defocus is applied.

Boost Highlights: Default: 0, Range: 0 or greater.
The amount to increase the luma of the highlights in the source clip. Increase this parameter to blow out the highlights without affecting the darks or mid-tones.

Hilight Threshold: Default: 0.9, Range: 0 or greater.
The minimum luma value for highlights. Pixels brighter than this will be brightened according to the Boost Highlights parameter.

Brightness: Default: 1, Range: 0 or greater.
Scales the brightness of the result.

Offset Darks: Default: 0, Range: any.
Adds this gray value to the darker regions of the result. This can be negative to increase contrast.

Scale Color: Default rgb: [1 1 1].
Scales the color of the result. For example, if it is yellow [1 1 0], the blue of the result will be 0.

Chroma Sep: Default: 0.3, Range: -1 to 1.
The amount of separation between the three color channel rings.

Chroma Ringthick: Default: 0.3, Range: 0.01 or greater.
The thickness of each of the three color channel rings.

Chroma Distort: Default: 0, Range: any.
Adds some chromatic aberration around the edges of the image; red and blue wavelengths of light refract differently in real lenses, producing fringes of color where the rays strike the lens at oblique angles.

Mix With Source: Default: 0, Range: 0 to 1.
Interpolates between the defocused result and the original source. Set this to 1 for the original source.

Edge Mode: Popup menu,  Default: Reflect .
Determines the behavior when accessing areas outside the source image.
Transparent: Areas outside the source image are treated as transparent, which can produce transparency around the edges of the image. Select this for fastest rendering.
Repeat: Repeats the last pixel outside the border of the image.
Reflect: Reflects the image outside the border.

Opacity: Popup menu,  Default: Normal .
Determines the method used for dealing with opacity/transparency.
All Opaque: Use this option to render slightly faster when the input image is fully opaque with no transparency (alpha=1).
Normal: Process opacity normally.
As Premult: Process as if the image is already in premultiplied form (colors have been scaled by opacity). This option also renders slightly faster than Normal mode, but the results will also be in premultiplied form, which is sometimes less correct.

Mask Use: Popup menu,  Default: Luma .
Determines how the Mask input channels are used to make a monochrome mask.
Luma: the luminance of the RGB channels is used.
Alpha: only the Alpha channel is used.

Blur Mask: Default: 0.05, Range: 0 or greater.
Blurs the Matte input by this amount before using. This can provide a smoother transition between the matted and unmatted areas. It has no effect unless the Matte input is provided.

Invert Mask: Check-box,  Default: off.
If on, inverts the Matte input so the effect is applied to areas where the Matte is black instead of white. This has no effect unless the Matte input is provided.

Show Defocus Width: Check-box, Default: on.
Turns on or off the screen user interface for adjusting the Defocus Width parameter.This parameter only appears on AE and Premiere, where on-screen widgets are supported.

See Also:

Sapphire Plug-ins Introduction


Join our email newsletter and keep up to date