Yotsuba Games
Back to Node List

Path Split

path_split

Extract a single sub-path from a multi-path by index

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
パ゚
path
Path
Required
åˆ†å‰˛ã™ã‚‹ãƒžãƒĢチパ゚å…Ĩ力

Output Ports

NameTypeDescription
パ゚
output
Path
æŠŊå‡ēされた単一ã‚ĩブパ゚
ã‚ĩブパ゚数
count
Int
å…Ĩ力パ゚ぎã‚ĩãƒ–ãƒ‘ã‚šįˇæ•°

Parameters

NameTypeDefaultRangeDescription / Options
ã‚¤ãƒŗãƒ‡ãƒƒã‚¯ã‚š
index
Int
00–127

æŠŊå‡ēするã‚ĩãƒ–ãƒ‘ã‚šãŽã‚¤ãƒŗãƒ‡ãƒƒã‚¯ã‚šīŧˆ0始ぞりīŧ‰

Overview

Extracts one subpath from a multipath. It becomes a branch point when you draw several parts in one path editor and want to process each part differently, such as with different line widths, colors, or effects.

Usage tips

  • A convenient setup is "draw in one editor, separate for processing": draw the outline, pattern, and ornaments as separate subpaths in Multi Path, extract them with Path Split ×N, and give each path_stroke different settings.
  • Recombine them afterward with path_combine when only the processing differs but you want to draw them together.
  • The count output gives the total subpath count, which also helps catch an incorrect index.

Related nodes

  • path_combine — reverse direction (merge)
  • path_stroke / path_fill — draw the extracted path
  • path_reverse — reverse one subpath (scope=SubPath)
  • list_get — a similar concept for lists

Technical details

  • Extracts the subpath at index from the input path's sub_paths array and outputs it as a standalone path.
  • An out-of-range index outputs an empty path.
  • The count output provides the total subpath count (useful for loops and similar processing).
  • The closed state is preserved as-is.

Examples

To process multiple subpaths drawn in Multi Path differently:

  1. Connect the Multi Path output to Path Split.
  2. Select the target subpath with index.
  3. Connect the output path to Path Array, Path Stroke, Path Fill, or another node.
  4. To process another subpath, add another Path Split and specify a different index.
Back to Node List