Skip to content

Grow / Shrink

modifier.grow_shrink ยท Filters

Grows or shrinks a selection by a distance in metres, moving its edge out or in with a soft border.

Purpose

Grows or shrinks a selection by a distance in metres. Reach for it to widen a mask that came out too tight (a thin ridgeline from a low Curvature strength) or to pull one in from an edge, without the blur-then-rethreshold dance.

Inputs

  • in

Outputs

  • out

Parameters

Parameter Type Range Default Unit Description Field-driven
Amount (amount) float [-100000, 100000] 10 m How far to move the selection's edge, in metres: positive grows the selection outward, negative shrinks it inward. Zero leaves the edge where it is (cleaning a soft selection to a crisp one). no
Softness (softness) float [0, 100000] 4 m Width of the soft border across the grown edge, in metres. Zero is a hard edge; larger values feather the selection out over a wider band. no

Layer contract

Reads and writes the height layer.

Behaviour

It reads the input as a region bounded by its half-way contour and offsets that boundary: a positive Amount moves it outward (grow), a negative Amount inward (shrink), over a Softness-wide soft edge. The offset is a true isotropic distance from the shared eikonal solver, so a grown circle stays a circle, and the result is byte-identical on every machine. Working from the contour means a soft selection comes back solid with a clean edge, so an Amount of zero tidies a fuzzy mask.