Studio Yotsuba
Back to Node List

Fx Bake SpriteSheet

fx_bake_spritesheet

Bakes a deterministic FX lane into a spritesheet. The FX input provides frame timing, while the Image input provides the final per-frame look.

Reviewed
Guide available

Input Ports

NameTypeDescription
FX
fx
FxState2D
Required
FX state that defines total frames and FPS
Image
image
Image
Required
Current frame image from the FX lane
Columns
columns
Int
Optional column override for the baked spritesheet layout.
Fill Order
fill_order
Text
Optional fill order override. row_major fills to the right first, column_major fills downward first.

Output Ports

NameTypeDescription
Image
image
Image
Current frame passthrough image
Spritesheet
spritesheet
SpriteSheet
Baked spritesheet document
Frame Count
frame_count
Int
Total number of frames baked into the spritesheet.
FPS
fps
Int
Playback FPS copied from the FX state.
Columns
columns
Int
Actual number of columns used by the baked spritesheet.
Rows
rows
Int
Actual number of rows used by the baked spritesheet.
Frame Width
frame_width
Int
Width of one frame inside the baked spritesheet.
Frame Height
frame_height
Int
Height of one frame inside the baked spritesheet.
Fill Order
fill_order
Text
Actual fill order used by the baked spritesheet.
Summary
summary
Text
Short summary of the baked spritesheet contract.

Parameters

NameTypeDefaultRangeDescription / Options
Columns
columns
Int
00–512

Target column count. Use 0 for automatic near-square packing.

Fill Order
fill_order
Enum
RowMajor—

How frames are packed into the spritesheet grid.

  • row_majorRowMajor
  • column_majorColumnMajor

Overview

The final output of an FX lane. It bakes each finished frame image into a sprite sheet using the frame count and FPS from the FX state. This is the FX-specific counterpart to the general-purpose animation_render; for FX, it is more natural to use the timeline source of truth (FxState2D) directly.

Usage tips

  • This node is distinctive because both fx and image must be connected: fx is the timeline source of truth, while image is the finished appearance. Connect the image at the end of the finishing chain, not Rasterize directly.
  • Send the output SpriteSheet directly to sprite_sheet_playback for review or to an export node.

Related nodes

  • fx_rasterize — the starting point on the image side
  • palette_quantize / pixel_cleanup — finishing nodes to insert in between
  • animation_render — general-purpose baking for non-FX animation
  • sprite_sheet_playback — reviews the baked result

Read this first

  • Fx Bake SpriteSheet is an FX-only bake output.
  • Unlike the general-purpose Animation Render, its source of truth is total_frames / fps in FxState2D.
  • This makes it the natural choice for P11.
  • Both fx and image are required because they serve different roles:
    • fx: the timeline source of truth that determines the number of frames, FPS, and seed
    • image: the final appearance actually baked for each frame

Why connect both FX and an image?

  • With only fx, the node does not know what to draw.
  • With only image, it does not know how many frames to bake or what FPS to use.
  • This node therefore:
    • receives timeline information from FxState2D,
    • collects the image finished by Fx Rasterize and its downstream nodes for each frame, and
    • packs those frames into a sprite sheet.

In other words, this node does not rasterize anything itself; it bakes a sequence of already completed frames.

The most basic setup

FxDomain2D
  -> FxEmitter2D
  -> FxForce
  -> FxRasterize
  -> PaletteQuantize
  -> PixelCleanup
  -> FxBakeSpriteSheet

With this setup, one lane:

  • converts FX to an image,
  • finishes it for pixel art, and
  • packs the result into a sprite sheet.

For the fx input, normally connect the final FxState2D after nodes such as Fx Emitter 2D and Fx Force. For the image input, normally connect the final image after Fx Rasterize, Palette Quantize, Pixel Cleanup, and any other finishing nodes.

Example

  • FxDomain2D.total_frames = 8
  • FxDomain2D.fps = 12
  • columns = 4
  • fill_order = row_major

Fx Bake SpriteSheet packs the eight frames into four columns, returning a sprite sheet with:

  • columns = 4
  • rows = 2
  • frame_count = 8

When to use it

  • To output flames, smoke, or splashes as a sprite sheet asset
  • To review the animation immediately in Sprite Sheet Playback
  • To reuse the sprite sheet inside the graph before export

Notes

  • The image input determines the final appearance of each frame.
  • Place Palette Quantize and Pixel Cleanup before Bake.
  • With columns = 0, the node automatically chooses a roughly square layout.
Back to Node List