FilterErode
Erode (filter): grows dark areas (size > 0) or light areas (size < 0) by a filter-weighted maximum; box is the fastest, gaussian the softest.
Erode (filter): grows dark areas (size > 0) or light areas (size < 0) by a filter-weighted maximum; box is the fastest, gaussian the softest. Works on alpha by default; size starts at 1.
| Node | FilterErode |
|---|---|
| Type id | OC_N_filtererode |
| Menu | Filter › Erode (filter) |
| Nuke class | FilterErode |
| Code | opencomp_core/nodes/filter/erode.py |

Inputs and outputs
| Port | Name | Type |
|---|---|---|
| input 0 | Image | image |
| input 1 | mask | image |
| output 0 | Image | image |
Knobs
Panel tab FilterErode, in panel order.
| Knob | Label | Type | Default | Range / values | Nuke knob | Description |
|---|---|---|---|---|---|---|
channels | channels | menu | alpha | rgba, rgb, alpha, all, none | Layer the op applies to: rgb, rgba, alpha, all, none, <layer> or <layer>.<ch> | |
size | size | float | 1 | -20 to 20 | size | |
filter | filter | menu | BOX | BOX (box), TRIANGLE (triangle), QUADRATIC (quadratic), GAUSSIAN (gaussian) | filter | |
mask_channel | mask | menu | none | none, rgba.alpha, rgba.red, rgba.green, rgba.blue | Mask channel, e.g. rgba.alpha (none = no mask) | |
inject | inject | bool | false | Copy the mask into mask.a for nodes downstream | ||
invert_mask | invert | bool | false | invert_mask | ||
fringe | fringe | bool | false | Only apply the effect at the edges of the mask | ||
mix | mix | float | 1 | 0 to 1 | mix |
Other knobs (Python, .nk and the assistant; not on the panel)
| Knob | Label | Type | Default | Range / values | Nuke knob | Description |
|---|---|---|---|---|---|---|
gl_color | Viewer Controls Color | float ×3 | 0, 0, 0 | 0 to 1 | ||
postage_stamp_frame | Static Frame | int | 1 | -2147483648 to 2147483647 | ||
lifetimeStart | Lifetime Start | int | 0 | -2147483648 to 2147483647 | ||
lifetimeEnd | Lifetime End | int | 100 | -2147483648 to 2147483647 | ||
useLifetime | Use Lifetime | boolean | false | |||
cached | Cached | boolean | false | |||
bookmark | Bookmark | boolean | false | |||
dope_sheet | Dope Sheet | boolean | false | |||
clone_group | Clone Group | string | ||||
link_source | Link Source | string | ||||
link_overrides | Link Overrides | string | ||||
split_views | Split Views | string | ||||
unpremult | (Un)premult by | enum | none | none, rgba.alpha | ||
invert_unpremult | invert | boolean | false | (Un)premultiply by 1 - alpha |
Nuke equivalent
Imports from and exports to Nuke's FilterErode. The standard Nuke mask knobs (channels, mask, invert, (un)premult, mix) are mapped too.
Nuke knobs not in this list import as a knob of the same name, or are kept unchanged for export. See .nk import.
Dilate
Erode (fast) (Nuke's Dilate): grows light areas (size > 0) or dark areas (size < 0) by that many pixels with a box minimum / maximum.
Glow2
Glow2: makes bright areas glow — the parts above tolerance are blurred (size, filter, quality as Blur), tinted, saturated, scaled by brightness and added to the image.