Studio Yotsuba
Back to Node List

Rule Polyline

rule_polyline

Creates a polyline placement operation from a point list, with a progress parameter for growing pipes.

Reviewed
Guide available

Input Ports

NameTypeDescription
Rule Canvas
canvas
RuleCanvas
Optional canvas to append the operation to.

Output Ports

NameTypeDescription
Rule Canvas
canvas
RuleCanvas
Canvas with the polyline operation appended.
Warnings
warnings
Text
Layer fallback warnings.
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
Material ID
material_id
Text
pipe—

Material id painted along the line.

Operation Kind
operation_kind
Text
polyline—

Operation kind exposed to RuleSet matchers.

Operation Name
operation_name
Text
——

Optional operation name exposed to RuleSet matchers.

Points
points
Text
0,0 6,0 6,4—

Point list as 'x,y x,y ...'.

Progress
progress
Float
10–1 / step 0.01

0-1 truncates the line from the start (growing pipe animation).

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 in a line from a sequence of points. Draw pipes, roads, and rivers numerically, then grow them from the start with progress (0–1), making a growing-pipe animation with simple wiring.

Usage tips

  • The signature use is a growth animation: time_source → progress (promote to an input pin 📌) → rule_animation_render. Rule resolution updates the autotile seams correctly as the line grows.
  • Use this for polylines; use rule_path for Bezier curves.
  • Chain it with rule_rect to build structures such as rooms and pipes.

Related nodes

  • rule_path — the Bezier-path counterpart
  • rule_rect — the rectangle counterpart
  • rule_animation_render — outputs the growth animation
  • rule_operation_merge — combines with hand painting

What this node does

Creates a line operation from points in x,y x,y … format. progress (0–1, promotable) trims the line by cell count from its start. Connect time_source → waveform → progress to animate a pipe growing, optionally with Rule Animation Render.

The cut always lands on a cell along the path, while context such as distance from the start and straight-section information is preserved. Future sequence rules, such as "a seam every N cells," can therefore apply without modification.

Inputs, outputs, and settings

Kind ID Type Description
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: pipe).
Setting points Text Point sequence such as 0,0 6,0 6,4.
Setting progress Float 0–1 (promotable) Fraction to draw from the start.
Setting map_width and others Int Map and cell settings for a new canvas.

Example wiring (growing pipe)

time_source -> sawtooth wave -> RulePolyline.progress (promoted)
RulePolyline.canvas + Pipe asset.asset -> RuleAnimationRender
Back to Node List