Studio Yotsuba
Back to Node List

Path Array

path_array

Place objects along a bezier path with various distribution modes

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
Bezier path to place objects along
Stamp
stamp
Image
Image to place at each point (1px dot if not connected)

Output Ports

NameTypeDescription
Image
output
Image
Generated array image

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
641–1024

Canvas width in pixels

Height
height
Int
641–1024

Canvas height in pixels

Sub-path Scope
sub_path_scope
Enum
All—

Whether to use all sub-paths or a single selected sub-path

  • AllAll
    Apply placement to all sub-paths
  • SingleSingle
    Use only one selected sub-path
Sub-path
sub_path_index
Int
00–255

Sub-path to place objects on when scope is Single

Count
count
Int
50–128

Number of objects to place per sub-path; 0 disables placement

Mode
mode
Enum
Equal—

Distribution mode for object placement

  • EqualEqual
    Place objects at equal intervals along the path
  • FillFill
    Place objects sequentially from start (like drawing a line)
  • RandomRandom
    Place objects at random positions along the path
  • ScatterScatter
    Scatter objects randomly around the path line
  • DistanceDistance
    Repeat objects at a fixed pixel spacing along the path
Spacing
spacing
Float
80.5–4096 / step 0.5

Center-to-center spacing in pixels; use the width of one chain link or fence section as a starting value

Start Offset
start_offset
Float
00–4096 / step 0.5

Distance from the path start to the first object; animate it to make footprints or lights travel

Remainder
remainder
Enum
Trim—

Choose where unused path length goes; centered spacing is useful for fence posts and rivets

  • TrimTrim
    Keep the requested spacing and leave any remainder at the end
  • CenterCenter
    Keep the spacing and split the remainder between both ends
Orientation
orientation
Enum
None—

Rotate stamps along the path; use 90-degree steps when free rotation softens small pixel art

  • NoneNone
    Keep every stamp in its original orientation
  • FreeFree
    Rotate freely to follow the path tangent
  • Snap45Snap45
    Follow the tangent using 45-degree steps
  • Snap90Snap90
    Follow the tangent using 90-degree steps for crisp pixel art
Direction Offset
orientation_offset
Float
0-180–180 / step 1

Extra rotation in degrees; use 90 when the source stamp points up instead of right

Seed
seed
Int
00–99999

Random seed for Random/Scatter modes

Spread
spread
Int
40–64

Maximum scatter distance from path (Scatter mode only)

Scatter Side
scatter_side
Enum
Both—

Which side of the path to use for Scatter mode

  • BothBoth
    Scatter on both sides of the path
  • InsideInside
    Scatter only toward the inside of closed subpaths
  • OutsideOutside
    Scatter only toward the outside of closed subpaths
Fill Direction
fill_direction
Enum
Forward—

Direction used by Fill mode

  • ForwardForward
    Place from start point toward the end point
  • ReverseReverse
    Place from end point back toward the start point
Fill Step
fill_step
Int
11–64

Place one object every N rasterized pixels in Fill mode

Color
color
Color
[1,1,1,1]—

Dot color (used when stamp is not connected)

Pixel Perfect
pixel_perfect
Bool
false—

Use rasterized pixel line positions instead of bezier sampling

PP Mode
pp_mode
Enum
RemoveCorner—

Which redundant pixels to remove in pixel-perfect mode

  • DiagonalDiagonal
    Remove horizontal steps for more diagonal lines
  • CardinalCardinal
    Remove vertical steps for more horizontal/vertical lines
  • RemoveCornerRemoveCorner
    Prefer removing the L-corner pixel
  • KeepCornerKeepCorner
    Prefer keeping the L-corner pixel
Closed Path Cross
pp_closed_cross
Bool
false—

Use cross-product based inner/outer edge removal for closed subpaths

Closed Edge
pp_closed_side
Enum
Outer—

Which side of closed path edges to remove

  • InnerInner
    Remove inner edge pixels
  • OuterOuter
    Remove outer edge pixels

Overview

Places images (stamps) or dots along a path. Chains, button rows, street lamps, or clumps of grass—anything repeated along a line can be built in four modes: evenly spaced, sequential, random, or scattered.

  • Version: 2
  • Generator: yes (is_generator: true)

Usage tips

  • Its main strength is a small image connected to stamp, such as a rivet, grass clump, or stone. With no connection, it places 1px dots.
  • Choose by use: chain or decoration → Equal; line-drawing effect → Fill; natural distribution such as grass or stones → Scatter, with variants from seed.
  • Scatter + a closed path + scatter_side: Inside scatters within a shape, such as flowers inside a grass patch.
  • For stamp variation, layer several PathArray nodes with different seed values using blend.

Common pitfalls

  • Stamps are clipped: placement points lie on the path, but the canvas still needs room for stamp dimensions. Check the rasterization canvas and padding-like margins.
  • Start and end overlap on a closed path: Equal avoids this automatically. If they still appear to overlap, count is too high and spacing is too tight.
  • Inside/Outside has no effect: an open subpath intentionally behaves like Both. Close the path.
  • Temporarily place nothing: count = 0 is a valid empty result and can be used as a procedural on/off switch.
  • No valid Inside/Outside candidate exists: that placement is skipped instead of silently returning to the path, and scatter_side reports a warning.

Placement modes

Mode Description
Equal Divide the path evenly. Automatically avoids duplicate start/end points on a closed path
Fill Use rasterized pixels in order. Set direction with fill_direction and skipping interval with fill_step
Random Place at random path positions, reproducible by seed
Scatter Distribute randomly around the path. Control deviation with spread and side with scatter_side: both / inside / outside. On open subpaths, Inside / Outside behave as Both

Pixel-perfect mode

  • On: place relative to the pixel-coordinate sequence rasterized by rasterize_subpath. The same PP correction options as Path Stroke are available: diagonal/cardinal priority, corner removal/preservation, closed-path cross product, and removal side.
  • Off: adaptively flatten the mathematical Bézier curve and place by total arc length. Equal uses visually equal distances and only the final placement is rounded to pixels.
  • Random samples uniformly along arc length. Scatter uses a disk whose radius is spread, so actual displacement never exceeds the configured distance.

Handling subpaths

  • Sub-path Scope = All
    • Place count items on each subpath using the same rule.
  • Sub-path Scope = Single
    • Place items only on the specified subpath.
  • The upper limit of sub_path_index updates in the UI to match the number of input subpaths.

Examples

Even placement

[BezierPath] → path → [PathArray(mode:Equal, count:10)] → [Preview]

Random scattering

[MultiPath] → path → [PathArray(mode:Scatter, count:20, spread:8, seed:42)] → [Preview]

Pixel-perfect placement

[BezierPath] → path → [PathArray(pixel_perfect:ON, pp_mode:RemoveCorner)] → [Preview]

Placing on only one path

[MultiPath] → path → [PathArray(sub_path_scope:Single, sub_path_index:1)] → [Preview]

Related nodes

  • mask_scatter — scatter in a mask area rather than along a path
  • path_sample — extract numeric coordinates on a path instead of placing objects
  • region_scatter — scatter with the region system
  • path_transform — adjust a path before placement
Back to Node List