Files
anm2ed/README.md
T
shweetandClaude Opus 5.5 2dbbfa5e86 anm2ed-cli and render tests: look at animations without the editor
- anm2ed-cli info|frame|render: a text summary, one frame as a PNG, or the
  whole animation as a contact sheet, PNG sequence, GIF or video, drawn by
  the editor's OpenGL renderer in a hidden window (render::HeadlessGL).
- render::animation_frame_render / animation_record draw an animation's
  layers over its bounds (Canvas::layers_render, also used by About) and
  record them through the existing Recorder.
- The editor's code builds as anm2ed_app, shared by the editor, the CLI and
  anm2ed_render_tests, which checks a fixture's pixels and golden PNGs
  (with tolerance; skipped without OpenGL) and leaves its renders in
  build/renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:32:42 -04:00

3.4 KiB

Anm2Ed

Preview

Anm2Ed is a modern editor for The Binding of Isaac: Rebirth's XML-based .anm2 animation format. It is built as an extended, more comfortable replacement for the original proprietary animation editor, with a dockable Dear ImGui interface and tools aimed at both quick edits and larger animation workflows.

Clarification

This application was developed with the assistance of a large language model.

Features

  • Full .anm2 editing: spritesheets, regions, layers, nulls, events, sounds, shaders, animations, frames and triggers.
  • Dockable Dear ImGui interface (windows can be detached into their own) with persistent layout, drag and drop, context menus and rebindable shortcuts.
  • Timeline: multi-select, cut/copy/paste (whole frames or single properties), duplicate, split, bake, drag to move/resize, and start/end markers to loop a range.
  • Groups for animations, layers and nulls, with group transforms baked for the game on save.
  • Frame properties for crop, size, position, pivot, scale, shear, rotation, tint, color offset, region, shader, visibility, interpolation (including easing) and flips; batch changes across selections.
  • Spritesheet editor with pan, move, crop, draw, erase and color picker tools; regions; packing, merging, trimming; automatic reload when files change on disk.
  • Animation preview with grid, axes, pivots, borders, onionskin (with pivot paths), and another document's animation as an overlay.
  • Wizards: generate animations from a grid, generate regions, change all frame properties, merge animations and files.
  • Render to video, GIF, spritesheet or PNG sequence (FFmpeg), with trigger sounds.
  • Saves the game's format with the editor's own copy embedded (SourceDocument), so nothing is lost; warns before saving anything the game doesn't support.
  • Undo/redo, autosave (spritesheet edits included) with crash restore, and overwrite warnings.

Supported Languages

  • English
  • Español (Latinoamérica) (Spanish (Latin America))
  • Pусский (Russian)
  • 中文 (Chinese)
  • 한국어 (Korean)

If you want to help localize for your language, feel free to get in touch to contribute.

Rendering Animations

FFmpeg is required for video/GIF-style export. Download it from ffmpeg.org, then point Anm2Ed to the ffmpeg executable in the render window.

Build

After cloning and entering the repository directory, initialize the submodules:

git submodule update --init --recursive

Windows

Visual Studio is recommended.

Linux

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

Tests

ctest --test-dir build

Render tests draw with OpenGL (skipped without a display) and leave their images in build/renders.

Command Line

anm2ed-cli looks at a file without the editor, drawing with the editor's renderer:

anm2ed-cli info  file.anm2                                  # animations, items, spritesheets, Isaac issues
anm2ed-cli frame file.anm2 --out frame.png --time 4         # one frame
anm2ed-cli render file.anm2 --out sheet.png --scale 3       # every frame in a grid (--type pngs|gif|webm|mp4|ogv)

Common options: --animation NAME|INDEX, --scale, --fps, --start/--end, --background RRGGBB. Run it without arguments for the full list.