Sapphire Plug-ins for After Effects: EdgesInDirection


Finds the edges of the source input that are aligned in a specified direction. Increase the Edge Smooth parameter for thicker edges.

In the Sapphire Stylize 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.

Edge Smooth: Default: 0.0224, Range: 0 or greater.
Increase for thicker and smoother edges.

Subpixel Smooth: Check-box,  Default: on.
Enables smoothing the edges by subpixel amounts. Use this for smoother animation of the Edge Smooth parameter.

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

Saturation: Default: 1, Range: -2 to 10.
Scales the color saturation of the result. Increase for more intense colors. Set to 0 for monochrome.

Offset Color: Default rgb: [0 0 0].
The color to add to the result. Make this gray to allow the darker side of edges away from the given Direction to also be visible.

Direction: X & Y,   Default: [0.389 0.361], Range: any.
Edges are found which are perpendicular to this direction vector.

Bidirectional: Check-box,  Default: off.
If enabled, edges towards and away from the Direction vector are treated equally.

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.

See Also:

Sapphire Plug-ins Introduction


Join our email newsletter and keep up to date