Skip to content

Nodes · Filter

FilterErode

Filterv1core

Overview

Shrinks (positive) or grows (negative) a matte, with a falloff chosen by filter. It is a matte tool - on colour brighter than white the soft filters pull values toward white.

How to

How-to

  1. Set size: positive erodes, negative dilates, to the fraction of a pixel.
  2. filter is the falloff. gaussian (the default) is soft and round. box is a hard edge with square corners. triangle and quadratic sit between.
  3. channels says what it changes. For a key's edge set it to alpha.

Positive size shrinks the matte, negative grows it, with the falloff filter picks. An imported script keeps whatever filter it used.

It is a matte tool. On colour brighter than white the soft filters pull values toward white. To shrink or grow something in a picture, use Erode.

Inputs

InputWhat it takes
inthe image this node works on
masklimits the effect to this matte — the engine's universal mask slot, applied for every node that declares it

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
channelsChoicergbaWhich channels this node writes: rgba, rgb (alpha passes through untouched), alpha only, all, or none (bypass). Everything unselected comes straight from the input. allrgbargbalphanone
sizeFloat0.0How far the edge moves, in pixels, to the fraction: positive shrinks, negative grows. With a soft filter the half-way point of the edge moves exactly this far.
filterChoicegaussianThe falloff. gaussian (the default) is soft and round. box is a hard edge with square corners, and what scripts saved before the others existed keep. triangle and quadratic are in between. boxtrianglequadraticgaussian
disabledBoolfalseBypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back.
labelTextA note shown under the node in the graph — what this node is FOR. Never affects the render or the cache.
hide_inputBoolfalseDraw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap).