Studio Yotsuba
Back to Node List

Rule Path

rule_path

Creates a polyline placement operation by sampling a bezier Path into cells (with progress).

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
Bezier path to place along (pixel coordinates).
Rule Canvas
canvas
RuleCanvas
Optional canvas to append the operation to.

Output Ports

NameTypeDescription
Rule Canvas
canvas
RuleCanvas
Canvas with the path operation appended.
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
Material ID
material_id
Text
road—

Material id painted along the path.

Progress
progress
Float
10–1 / step 0.01

0-1 truncates the path from the start.

Samples
samples
Int
642–512

How many points to sample along the path.

Map Width
map_width
Int
81–4096

Used when no canvas input is connected.

Map Height
map_height
Int
81–4096

Used when no canvas input is connected.

Cell Width
cell_width
Int
161–2048

Used when no canvas input is connected.

Cell Height
cell_height
Int
161–2048

Used when no canvas input is connected.

Grid Kind
grid_kind
Enum
Orthogonal—

Used for a new canvas when no canvas input is connected.

  • OrthogonalOrthogonal
  • IsometricDiamondIsometricDiamond
Render Order
render_order
Enum
RightDown—

Used for a new canvas when no canvas input is connected.

  • RightDownRightDown
  • RightUpRightUp
  • LeftDownLeftDown
  • LeftUpLeftUp

Overview

A placement node that paints tiles along a Bezier curve drawn in the path editor. Lay winding roads, rivers, and rails onto a map with familiar path editing. Like rule_polyline, progress can grow the result from the start.

Usage tips

  • The shortest route to a curved road is to draw it in multi_path_editor → rule_path → rule_render with the road material. Editing the path updates the road.
  • Increase samples when bends appear jagged.
  • For straight segments and polylines, rule_polyline is lighter.

Related nodes

  • rule_polyline — the point-sequence counterpart
  • multi_path_editor / bezier_path — supply the path
  • rule_animation_render — animates growth
  • rule_operation_merge — combines with hand painting

What this node does

Converts a Path drawn in a path editor such as MultiPathEditor into a cell-based line operation. Path coordinates in pixels are divided by the cell dimensions to map them onto the grid. progress (0–1, promotable) trims the line from its start. This places roads, rivers, and pipes directly from a path asset.

Inputs, outputs, and settings

Kind ID Type Description
Input path Path (required) Source Bezier path; uses the first subpath.
Input canvas RuleCanvas (optional) Canvas to append to. Creates a new canvas when unconnected.
Output canvas RuleCanvas Canvas with the line operation added.
Setting material_id Text Terrain name to paint (default: road).
Setting progress Float 0–1 (promotable) Fraction to draw from the start.
Setting samples Int Number of path samples; increase for coarse curves.

Example wiring

Multi Path Editor.path -> RulePath.path
RulePath.canvas + Road preset.asset -> RuleRender
Back to Node List