shweetandClaude Opus 5.5 065dd522f3 Remove items in use; drop Remove Unused
Every content window's Remove (the Delete key) takes the selection out with
what refers to it: a layer's or null's tracks in every animation, a
spritesheet's plain layers (and regions), an event or sound from its triggers
(dropping triggers left with neither), a shader or region from its frames
(which keep the region's rectangle), and a library's layers, flattened into
plain ones. When anything is in use it asks first, listing what goes ("This
will remove:" ... "Are you sure?"). Remove Unused is gone; Remove takes its
place in each footer.

One reference walk (model.cpp) counts uses and finds unused items, so
shaders on null and root frames count, and an animation layer's unused
spritesheet doesn't. Flattening can be limited to some layers, merging only
their children's triggers, which now record the layer they fired through.
edit::content_remove does the removal; Document::spritesheet_path_resolver_get
is shared with saving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:33:25 -04:00
2026-03-29 20:13:24 -04:00
2026-10-28 21:57:39 -04:00
2025-12-28 16:32:08 -05:00
2026-10-08 18:47:39 -04:00
2025-11-09 10:35:21 -05:00
2026-08-06 11:47:20 -04:00
2026-10-28 21:57:39 -04:00
2025-12-01 21:13:58 -05:00
2026-10-03 14:22:12 -04:00
2026-10-28 21:57:39 -04:00
2025-06-15 22:03:02 -04:00

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 (PNG or SVG), regions, layers, nulls, events, sounds, shaders, animations, frames and triggers (several events each).
  • Animation layers: a layer can play another animation, from the same file or a linked library (.anm2), with per-keyframe loop/once/hold, start frame and restart. The timeline shows the child's tracks under the layer; double-click to edit the child in place, with a breadcrumb back out.
  • 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, skew, rotation, depth, tint, color offset (with alpha), blur (Flash's blur filter), 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; spritesheets and libraries reload when their 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 write the game's format with the editor's own copy embedded (SourceDocument), so nothing is lost; animation layers are flattened for the game, and anything else the game doesn't support is warned about first. Documents can instead be saved as the editor's own, human-readable JSON (format), which opens like any .anm2.
  • 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 <command> looks at a file without opening the editor, drawing with the editor's renderer:

anm2ed info   file.anm2                               # animations, items, spritesheets, Isaac issues
anm2ed frame  file.anm2 --out frame.png --time 4      # one frame
anm2ed 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, --ffmpeg PATH (defaults to the editor's FFmpeg setting). anm2ed render alone lists them all.

S
Description
No description provided
Readme GPL-3.0
63 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 90.9%
C 9.1%