Overview
Extracts only part of a path (from start_t to end_t). Its showcase use is
a line-drawing effect: simply animate end_t from 0 to 1 to draw a line as it
traces the path.
Usage tips
- The go-to drawing animation is: promote
end_tto an input pin ๐ โtime_source+ease_in_outโ draw withpath_strokeโanimation_render. It creates drawing effects for magic circles, signatures, or lightning in one setup. - It is useful statically too: take part of a circular path for an arc, or use only the middle of a long path.
- A closed path can extract an interval across the starting point (
start 0.75 โ end 0.25).
Related nodes
path_strokeโ draw the extracted lineease_in_out/time_sourceโ driveend_tpath_reverseโ reverse the growth directionrevealโ a similar image-based effect that does not require a pathVersion: 1
Behavior
- Extracts the interval from
start_ttoend_tas a Path. - On an open path with
start_t > end_t, the values are automatically reordered from smaller to larger. - On a closed path with
start_t > end_t, the interval wraps forward across the end point. - A zero-length interval returns an empty path.
Examples
Draw a growing line
[Bezier Path] โ [Path Trim] โ [Path Stroke] โ [Preview]
โstart_t
โend_t
Keep start_t=0.0 and animate end_t from 0 to 1 to make the line grow.
Place stamps on only part of a path
[Bezier Path] โ [Path Trim] โ [Path Array] โ [Preview]
Extract an interval across the start of a closed path
[Multi Path] โ [Path Trim(start_t:0.75, end_t:0.25)] โ [Path Stroke]
On a closed path, an interval across the starting point is extracted forward as-is.
Notes
- One operation trims one subpath.
- Combine it with
PathSplitto handle multiple subpaths individually. - The trimmed result is open unless the entire interval is retained.