Back to Node List

Rule Rect

rule_rect

Creates a rect placement operation from numeric parameters (animatable walls and floors).

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
ルールキャンバス
canvas
RuleCanvas
操作を追記する既存キャンバスです。未接続なら新規キャンバスを作ります。

Output Ports

NameTypeDescription
ルールキャンバス
canvas
RuleCanvas
矩形操作を追加したキャンバスです。
警告
warnings
Text
レイヤー補正などの警告です。
概要
summary
Text
結果の短いまとめです。

Parameters

NameTypeDefaultRangeDescription / Options
地形名
material_id
Text
terrain

矩形で塗る地形名(素材ID)です。

操作種別
operation_kind
Text
rect

ルールセットの操作条件へ渡す操作種別です。

操作名
operation_name
Text

ルールセットの操作条件へ渡す任意の操作名です。

X
x
Int
0-512–512

矩形の左端セルです。

Y
y
Int
0-512–512

矩形の上端セルです。

width
Int
41–512

矩形の幅(マス数)です。

高さ
height
Int
31–512

矩形の高さ(マス数)です。

マップ幅
map_width
Int
81–4096

キャンバス入力が無い時に作る新規キャンバスの設定です。

マップ高さ
map_height
Int
81–4096

キャンバス入力が無い時に作る新規キャンバスの設定です。

セル幅
cell_width
Int
161–2048

キャンバス入力が無い時に作る新規キャンバスの設定です。

セル高さ
cell_height
Int
161–2048

キャンバス入力が無い時に作る新規キャンバスの設定です。

グリッド種別
grid_kind
Enum
Orthogonal

キャンバス未接続時に作る新規キャンバスのグリッド種別です。

  • 直交Orthogonal
  • アイソダイヤIsometricDiamond
描画順
render_order
Enum
RightDown

キャンバス未接続時に作る新規キャンバスの描画順です。

  • 右下RightDown
  • 右上RightUp
  • 左下LeftDown
  • 左上LeftUp

Overview

Paints terrain onto a rule canvas as a numerically specified rectangle. It is a building block for parametric map generation, such as changing room dimensions with sliders or managing wall positions through variables.

Usage tips

  • Chain nodes to build a structure: rule_rect (floor) → rule_rect (wall) → rule_polyline (corridor) → rule_render. Each node parameter becomes a map-design variable.
  • Promote position and size to input pins 📌 and connect waveforms to animate an expanding room.
  • Combine with hand painting through rule_operation_merge.

Related nodes

  • rule_polyline / rule_path — line-based placement nodes
  • rule_operation_merge — combines with hand painting
  • rule_render — renders the result
  • rule_canvas — the hand-painting workbench

What this node does

Creates a rectangle operation from numeric X/Y/width/height values instead of drawing a rectangle in the Rule Canvas editor. Every value is promotable, so variables, waveforms, and timelines can move walls or rooms. Connect canvas to append the operation, chaining multiple nodes to build up a map.

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 rectangle operation added.
Setting material_id Text Terrain name to paint.
Setting x / y / width / height Int (promotable) Rectangle position and dimensions in cells.
Setting map_width and others Int Map and cell settings for a new canvas.

Example wiring

RuleRect.canvas -> RulePolyline.canvas -> RuleRender.canvas
Autotile creation.asset -> RuleRender.asset
Back to Node List
Rule Rect — PixPipeline Node Reference