Studio Yotsuba
Back to Node List

Path Connect

path_connect

Connects one open sub-path from each input into a single continuous path, reversing directions when needed

Reviewed
Guide available

Input Ports

NameTypeDescription
Path A
path_a
Path
Required
Path document that supplies the first selected sub-path
Path B
path_b
Path
Required
Path document that supplies the second selected sub-path

Output Ports

NameTypeDescription
Path
path
Path
Path document with the selected pair connected as one sub-path

Parameters

NameTypeDefaultRangeDescription / Options
Sub-path A
sub_path_a
Int
00–255

Sub-path index from Path A (0 = first)

Sub-path B
sub_path_b
Int
00–255

Sub-path index from Path B (0 = first)

Endpoints
endpoints
Enum
Auto—

Which original endpoints meet. Start with Closest Endpoints; choose an explicit pair when nearby decorative ends make the automatic choice ambiguous.

  • AutoAuto
    Choose the closest pair among the two starts and two ends, then reverse either path as needed
  • AEndBStartAEndBStart
    Connect A's original end to B's original start without reversing either path
  • AStartBStartAStartBStart
    Reverse A, then connect A's original start to B's original start
  • AEndBEndAEndBEnd
    Reverse B, then connect A's original end to B's original end
  • AStartBEndAStartBEnd
    Reverse both paths, then connect their original start/end pair
Gap Handling
gap_mode
Enum
Bridge—

How to handle the space between the chosen endpoints. Use Bridge for cables and outlines that must keep both authored shapes; use Snap for seams that should already meet.

  • SnapSnap
    Move B's joining anchor and adjacent handle onto A's endpoint; use this for parts that should already touch
  • BridgeBridge
    Keep both shapes and insert one straight cubic segment across the gap
  • WithinToleranceWithinTolerance
    Snap only when the endpoint distance is within Tolerance; otherwise return the two sub-paths unchanged with a warning
Tolerance
tolerance
Float
20–256 / step 0.5

Maximum endpoint distance in pixels for Connect Only When Close. Start around 1–2px for hand-aligned pixel paths; raise it only when small placement errors should be accepted.

Overview

Connects separately drawn open paths such as cables, pipes, and outlines into one continuous stroke. Unlike path_combine, it aligns endpoint direction and can bridge a gap with a straight segment. Taper and path coordinates then continue across the join.

Usage tips

  • Start with two multi_path_editor or bezier_path outputs, Nearest Endpoints, and Bridge with Line, then inspect the result through path_stroke.
  • Bridge with Line preserves both source shapes and adds one segment in the gap. It is the normal choice for separated cables, pipes, or frame edges.
  • Snap B Endpoint to A moves only B's connection anchor and adjacent handle. Use it to remove a hand-drawn 1–2px mismatch at an almost-overlapping seam.
  • Connect Only When Near prevents an unexpected automatic pairing. Start with a 1–2px tolerance; paths beyond it remain separate and produce a warning.
  • Specify A End → B Start or another explicit pair only when automatic selection chooses the wrong endpoints. Paths are reversed internally as needed to preserve A→B order.
  • A30 height and width curves reverse with the path and are redistributed over the joined length. Values interpolate across a straight bridge.

Common mistakes

  • The result still contains two paths: check for closed or empty subpaths, an invalid subpath index, or a tolerance failure in Connect Only When Near.
  • The wrong ends connect: select the endpoints explicitly. Use path_reverse upstream when visual confirmation of direction helps.
  • Only the seam changes shape: Snap moves B. Choose Bridge with Line when neither source path may move.
  • Role or color is unexpected: one subpath can hold one metadata set. Explicit values from A win, and missing A values may fall back to B. Keep different roles separate with path_combine.

Related nodes

  • path_combine — collect multiple subpaths without joining endpoints
  • path_reverse — reverse direction explicitly before joining
  • path_stroke — inspect the joined result as one continuous line
  • path_coordinate_map — render progress and lateral distance along the joined path
  • path_trim — shorten a path rather than extending or joining it
Back to Node List