Studio Yotsuba
Back to Node List

Rule Animation Render

rule_animation_render

Renders a RuleCanvas with animated tiles into frame images and a sprite sheet.

Reviewed
Guide available

Input Ports

NameTypeDescription
Rule Tile Asset
asset
RuleTileAsset
Bundled tile set + rule set. Takes priority over the individual inputs.
Rule Canvas
canvas
RuleCanvas
Required
RuleCanvas to resolve and animate.
Rule TileSet
tile_set
RuleTileSet
Rule tile images (static and animated). Not needed when a Rule Tile Asset is connected.
RuleSet
rule_set
RuleSet
Rules for choosing tiles.

Output Ports

NameTypeDescription
Frames
frames
List<Image>
Rendered frame images.
SpriteSheet
spritesheet
SpriteSheet
Frames packed into a sprite sheet.
Image
image
Image
First frame image.
Frame Count
frame_count
Int
Number of rendered frames.
Warnings
warnings
Text
Warnings such as truncated animation periods.
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
FPS
fps
Int
81–60

Output frames per second.

Duration (ms)
duration_ms
Int
00–60000

0 derives the duration from the LCM of animated tile periods.

Max Frames
max_frames
Int
641–256

Truncates the frame count to avoid explosion.

Sheet Columns
columns
Int
00–64

Columns of the packed sheet. 0 chooses automatically.

Overview

Renders a map containing animated tiles into a sprite sheet with every frame. It automatically draws an entire map of rippling water, dancing flames, and other motion at a period that loops correctly.

Usage tips

  • The frame count is automatic, based on the least common multiple of animated-tile periods, so simply connecting the inputs usually produces a matching loop. Mixing too many unrelated periods can inflate the frame count; cap it with max_frames.
  • If you need only one image, such as a thumbnail, the time setting on rule_render is enough.

Related nodes

  • rule_render — the single-frame counterpart
  • rule_canvas — supplies the map to render
  • sprite_sheet_playback — previews the output sheet
  • batch_export — exports the sheet

What this node does

Outputs a map containing animated tiles such as water, flames, and blinking lights as one complete animation. Rule resolution (which tile to place) runs only once; each frame only changes the render time, keeping the process lightweight.

The frame count is determined automatically from the least common multiple of the periods of the placed animated tiles. For example, 2-frame water with a 200ms period and 3-frame flames with a 300ms period produce a 600ms period. The requested FPS is preserved, and output extends to the smallest whole-frame multiple of the period. Looping tiles use the LCM; non-looping tiles use their completion time. If max_frames prevents an exact endpoint, output is capped and a non-seamless-loop warning is emitted.

Key settings

ID Name Description
fps FPS Number of output frames per second (default: 8).
duration_ms Output duration Set to 0 to determine it automatically from the LCM of animated-tile periods.
max_frames Maximum frames Truncates and warns when the period exceeds this count (default: 64).
columns Sheet columns Set to 0 for automatic layout.

Relationship to still-image rendering

Rule Render also provides Display Time (ms) / Frame Index parameters. Use it when you need only one image at an arbitrary time. The time can be promoted to a variable or animation input.

Example wiring

RuleCanvas.canvas               -> RuleAnimationRender.canvas
RuleTilePack.tile_set           -> RuleAnimationRender.tile_set
RuleSetPreset.rule_set          -> RuleAnimationRender.rule_set
RuleAnimationRender.spritesheet -> Sprite sheet export
Back to Node List