Studio Yotsuba
Back to Node List

Rule Operation Merge

rule_operation_merge

Merges the placement operations (and painted cells) of multiple rule canvases into one.

Reviewed
Guide available

Input Ports

NameTypeDescription
Canvas A
canvas_a
RuleCanvas
Required
Rule canvas to merge.
Canvas B
canvas_b
RuleCanvas
Rule canvas to merge.
Canvas C
canvas_c
RuleCanvas
Rule canvas to merge.
Canvas D
canvas_d
RuleCanvas
Rule canvas to merge.

Output Ports

NameTypeDescription
Rule Canvas
canvas
RuleCanvas
Merged canvas.
Warnings
warnings
Text
Grid mismatch warnings.
Summary
summary
Text
Short result summary.

Overview

Layers multiple rule canvases into one, combining hand painting with parametric placements from rule_rect, rule_polyline, and similar nodes. This enables a layered workflow such as painting base terrain by hand and placing buildings with rectangle nodes.

Usage tips

  • Later inputs appear on top. Put the base terrain in canvas_a, then overlays in b, c, and so on.
  • Keeping parametric placement (rect / polyline / path) in separate nodes lets you move size and position with sliders without damaging the painted canvas.
  • Check the warnings output at least once to catch dimension mismatches.

Related nodes

  • rule_rect / rule_polyline / rule_path — supply parametric placements
  • rule_canvas — supplies the hand-painted canvas
  • rule_render — renders the combined result

What this node does

Combines parametric operations made with Rule Rect and Rule Polyline with a canvas painted in the editor. Operations are layered by input order, then by order within each canvas; later inputs appear on top. Non-empty hand-painted cells overwrite earlier cells.

For a canvas whose map dimensions differ from the first input, hand-painted cells are skipped while operations are still combined. A warning reports the mismatch. Operation coordinates remain valid because they are absolute.

Inputs and outputs

Kind ID Type Description
Input canvas_a–canvas_d RuleCanvas (only a is required) Canvases to combine.
Output canvas RuleCanvas Combined result.
Output warnings / summary Text Dimension mismatches and a summary.

Example wiring

Hand-painted RuleCanvas.canvas ──→ RuleOperationMerge.canvas_a
RuleRect.canvas                ──→ RuleOperationMerge.canvas_b
RuleOperationMerge.canvas      ──→ RuleRender.canvas
Back to Node List