Studio Yotsuba
Back to Node List

Rule Render

rule_render

Resolves a RuleCanvas with a RuleTileSet and RuleSet, then renders it to an image.

Reviewed
Guide available

Input Ports

NameTypeDescription
Rule Tile Asset
asset
RuleTileAsset
Bundled tile set + rule set. Takes priority over the individual inputs.
Warnings
warnings
Text
Fallback and placement-list warnings.
Rule Canvas
canvas
RuleCanvas
Optional RuleCanvas to resolve.
Placement List
cells
List<Any>
Ordered placement list used when Rule Canvas is not connected.
Rule TileSet
tile_set
RuleTileSet
Rule tile images. Not needed when a Rule Tile Asset is connected.
RuleSet
rule_set
RuleSet
Rules for choosing tiles.

Output Ports

NameTypeDescription
Rule Canvas
canvas
RuleCanvas
RuleCanvas used for this render.
Rule Resolved
resolved
RuleResolved
Resolved tile placement.
Image
image
Image
Rendered image.
Tile Count
tile_count
Int
Number of placed tiles.
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
Canvas Name
canvas_name
Text
Rule Canvas—

Name used when creating a canvas from the placement list.

Layer Name
layer_name
Text
Layer 1—

Layer name used when creating a canvas from the placement list.

Width
width
Int
81–4096

Canvas width used for the placement list.

Height
height
Int
81–4096

Canvas height used for the placement list.

Time (ms)
time_ms
Float
00–600000 / step 1

Time in milliseconds used to pick animated tile frames.

Frame Index
frame_index
Int
-1-1–4096

-1 uses Time (ms). Otherwise renders frame_index / fps seconds.

FPS
fps
Int
81–60

Frames per second used with Frame Index.

Cell Mode
cell_mode
Enum
TileIndex—

How to read values in the placement list.

  • tile_indexTileIndex
    Read the placement list as tile indexes.
  • tile_idTileId
    Read the placement list as tile id strings.
  • material_idMaterialId
    Read the placement list as material ids.

Overview

A render node that resolves a rule canvas and turns it into an image. Rule Canvas provides its own preview, but use this node to compare different tile sets or rules on the same canvas, or to render a specific animated-tile frame at a chosen time.

Usage tips

  • Connect a different tile set and rules to the same canvas to swap its appearance, for example sharing one canvas between day and night maps.
  • Promote time_ms to an input pin 📌 to drive animated tiles by time. Use rule_animation_render to output every frame at once.
  • The output is a regular Image, ready for downstream finishing filters.

Related nodes

  • rule_canvas — supplies the canvas to resolve
  • rule_animation_render — creates a sheet containing all frames
  • rule_set_preset / rule_set_editor — supply tile sets and rules
  • tiled_map_export — exports resolved data

What this node does

For each cell in a RuleCanvas (or placement list), evaluates the rule set's neighborhood conditions to choose a tile, then outputs both the resolved result (RuleResolved) and the rendered image.

If a placement list is shorter than the map, missing cells are padded as Empty; extra entries are ignored. Negative indices, non-integer floats, and unsupported values also become Empty while rendering continues. Counts for each case are reported in warnings. MaterialId fallback without a connected RuleSet is also reported there.

Animated-tile time selection

ID Name Description
time_ms Display time (ms) Time used to select animated-tile frames. Can be promoted to a variable or animation input.
frame_index Frame index Disabled at -1. A value of 0 or more renders at the time frame index ÷ fps.
fps FPS Used when selecting by frame index.

To output every frame together, use Rule Animation Render.

Example wiring

RuleCanvas.canvas      -> RuleRender.canvas
RuleSetPreset.tile_set -> RuleRender.tile_set
RuleSetPreset.rule_set -> RuleRender.rule_set
RuleRender.resolved    -> TiledMapExport.resolved
Back to Node List