Trim Path

Trim, dash, or reverse path segments.

What it does

Trim Path reshapes the paths inside a shape without changing what generated them: it can reverse a path's direction, cut it down to a sub-range, and break it into a dash pattern of real, separate segments. The three operations are independent toggles and always apply in the same order, reverse then trim then dash, so they combine freely.

This is a geometry operation, not a stroke effect. Dashing here splits the path into distinct sub-paths, so each dash becomes its own piece to scatter objects along, transform individually, or export. For a dashed look on a stroke alone, use the Stroke node's dash, which is a visual effect with no geometry split.

When to use it

ParameterTypeDefault
inputOneOf([CollectionOf(Crc)])
reverseBooleanfalse
enable_trimBooleanfalse
trim_startNumber0
trim_endNumber100
travelNumber0
enable_dashBooleanfalse
dash_patternString"10, 5"
dash_offsetNumber0
strengthNumber1

Gotchas

Reverse, Trim and Dash always compose in that fixed order, regardless of which order they are toggled on in the panel.

Trim Start/End are percentages along the path (0–100). Travel shifts the whole trimmed window forward or backward without resizing it, which is the simplest way to animate a moving highlight of constant length along a path.

Dash Pattern is a comma- or space-separated list of dash and gap lengths, for example 10, 5. Non-numeric entries are skipped and negative lengths are dropped, with no error, so a malformed pattern can shrink to fewer segments than typed.

Worked example

  1. Add Trim Path and wire in a shape.

  2. Enable Trim, then animate Trim End from 0 to 100 to draw the path on over time.

  3. Enable Dash and set Dash Pattern to "10, 5" to break the visible range into dashes; nudge Dash Offset to slide the pattern along the path.

  4. Turn on Reverse to read the trim and dash from the opposite end of the path.

See also

Offset · Follow Path · Bevel · Curves (lines & paths)