Studio Yotsuba
Back to Node List

SpriteSheet Playback

sprite_sheet_playback

Plays back a spritesheet contract and returns the current frame image

Reviewed
Guide available

Input Ports

NameTypeDescription
Spritesheet
spritesheet
SpriteSheet
Required
Source SpriteSheet document
Time
time
Float
Time input used to choose a frame
Frame
frame
Int
Direct frame override. Takes priority over time.

Output Ports

NameTypeDescription
Spritesheet
spritesheet
SpriteSheet
Passthrough SpriteSheet document
Image
image
Image
Current frame image
Frame
frame
Int
Resolved frame index
Frame Count
frame_count
Int
Normalized frame count
FPS
fps
Int
Normalized FPS
Columns
columns
Int
Normalized column count
Rows
rows
Int
Normalized row count
Frame Width
frame_width
Int
Normalized frame width
Frame Height
frame_height
Int
Normalized frame height
Fill Order
fill_order
Text
Normalized fill order
Summary
summary
Text
Short playback summary

Parameters

NameTypeDefaultRangeDescription / Options
Time
time
Float
00–60 / step 0.01

Fallback time value

Time Mode
time_mode
Enum
Normalized—

How to interpret time input

  • normalizedNormalized
    Interpret time as normalized progress (0.0-1.0)
  • secondsSeconds
    Interpret time as seconds and advance by FPS
Frame
frame
Int
-1-1–4096

Direct frame override. -1 uses time.

Loop
loop
Bool
true—

Wrap around when the frame goes out of range

Overview

Plays a spritesheet for inspection. Given a time or frame number, it extracts and returns the corresponding frame image. Use it for animation playback previews, extracting a particular frame, or starting further processing from a sheet.

Usage tips

  • The basic playback preview is animation_render (or sprite_sheet_pack).spritesheet → playback, and time_source.time → time. Watch the image output to see the animation play.
  • To retrieve a particular frame, enter its number in frame, which takes priority over time. This also supports static tasks such as extracting only frame 4 for processing.
  • With loop enabled, playback wraps and continues even when time leaves the range.

Common pitfalls

  • Trying to connect a raw Image: this node accepts only the SpriteSheet type. Add contract information to an externally loaded sheet image with sprite_sheet_info first.

Related nodes

  • sprite_sheet_pack / animation_render — supply sheets
  • sprite_sheet_info — turn an external image into a sheet input
  • sprite_sheet_frame_get — focused on frame extraction instead of playback
  • time_source — supply playback time

Examples

  1. Connect the spritesheet from KeyframeClip, AnimationRender, SpriteSheetPack, or SpriteSheetInfo.
  2. Connect TimeSource.time to time.
  3. Connect the image output to Preview.

Additional notes:

  • Use the frame input or frame parameter to switch frames by index directly.
  • SpriteSheetPlayback does not accept a raw Image. When starting from an external image, pass it through SpriteSheetInfo first.
  • The node also passes through spritesheet and helper metadata outputs, so it can preserve the playback preview in the Inspector while feeding downstream nodes.

Frame selection rules

  • Indices are zero-based (the second frame is frame = 1). Any frame >= 0 always overrides time.
  • Seconds selects floor(time * FPS). With loop on, positive and negative values wrap by frame count; with loop off, they clamp to the first/last frame.
  • Looping Normalized time uses floor(fract(time) * frame_count), so time = 1.0 returns to the first frame. Non-looping Normalized mode keeps the endpoint mapping from 0 to the first frame and 1 to the last.
Back to Node List