# Repository Briefing: Ercelcan/Comfyui-H3Anim
> Source: https://repoforai.com/repo/Ercelcan/Comfyui-H3Anim (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Ercelcan/Comfyui-H3Anim
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: JavaScript
- **License**: Apache-2.0
- **Engineering Health**: A (78/100 · Maintenance 35/35 · Adoption 12/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted
- **Momentum**: 116 ★ total (+4 24h / +115 7d) · 10 forks
- **When to Use**: Best for: Teams already running MiniMax H3 in ComfyUI that want to turn short character clips into transparent, aligned sprite loops with hands-on frame editing and atlas export. Skip if: You lack a compatible H3 host, only need to pack finished frames, or require a specific engine import format or unattended batch workflow that you have not validated.

## Overview
```text
### Architecture & Core Mechanics
H3Anim is a ComfyUI custom extension that wraps native MiniMax H3 video generation and sprite preparation in one interactive node. Reference-to-video relies on `MiniMaxH3ReferenceToVideo`; first-frame or first/last-frame generation additionally requires `MiniMaxH3ImageToVideo`. The package contains Python files including `__init__.py`, `h3_one_node.py`, `matting.py`, and `Converter.py`, alongside `web/` and `presets.json`. The extension runs in ComfyUI and uses the host's built-in nodes and installed dependencies rather than shipping an independent inference runtime.

After generation and decoding, the Studio lets users extract alpha, select and reorder frames, correct offsets, and preview the sequence before packing it. The node keeps decoded `raw_frames` separate from aligned `frames_rgba` and `alpha_mask`, so a downstream graph can use the unedited result or the processed frames without reading files back from disk. The export panel writes sprite assets separately, and recent generation history lets users reopen a result for another editing or export pass.

### Key Capabilities & Differentiators
Reference-to-video accepts up to three character reference images; image-to-video requires a first frame and optionally takes a last frame. Generation controls cover prompt presets or a custom prompt, style, backdrop, dimensions, duration, steps, sampler, and seed. For transparency, users can connect an external mask, select an installed background-removal model, or use the built-in color keyer. Edge softness, spill suppression, and alpha erosion or dilation provide separate controls for cleaning up the matte.

The Studio supports frame selection, reordering, offset correction, stabilization, and configuration of playback FPS and sheet layout. Default file export writes a sprite sheet and atlas JSON and updates a combined `_animations.json` manifest that indexes each action's sheet and atlas. The atlas records frame rectangles, cell dimensions, frame count, and FPS. Individual aligned PNGs and mirrored animation copies are optional. The supplied Mina assets give integrators concrete files against which to test their importer.

### Trade-offs & Limitations
Compared with assembling separate ComfyUI generation and matting nodes and then using a standalone sprite packer, H3Anim cuts down the handoffs for revising short character loops. The trade-off is coupling: generation depends on native MiniMax H3 support, and the export contract is H3Anim's atlas and manifest format. Check that format against the target importer before standardizing on it. If a pipeline already produces aligned RGBA frames, a standalone packer may be the simpler dependency.

The three matte paths address different inputs. Color keying avoids another model but depends on the backdrop being separable from the subject; an external mask gives upstream control but must correspond to the frames being processed. Model-based matting adds a model to provision and validate. For sizing, test representative clips on the intended host: model choice, resolution, duration, and concurrent jobs affect capacity, and no exact VRAM requirement is specified. The Apache-2.0 license covers the extension, not the separately installed model weights.

### Hardware & Deployment Guide
Install the extension by cloning `Ercelcan/Comfyui-H3Anim` into `ComfyUI/custom_nodes/` and restarting ComfyUI. The host build must include the native H3 node or nodes required by the intended generation mode. Install the diffusion model, text encoder, and video VAE separately under `ComfyUI/models/diffusion_models/`, `ComfyUI/models/text_encoders/`, and `ComfyUI/models/vae/` respectively. Optional LoRAs go in `ComfyUI/models/loras/`. The extension itself requires no separate Python package installation; model-based matting is optional and requires its own installed model.

This is a self-hosted ComfyUI workflow with no remote generation API required for the described path. Ensure ComfyUI can write to the default export location, `ComfyUI/output/H3Anim/<asset-name>/`. Test the exact host build and model combination before rolling it out: no published release is listed and no minimum ComfyUI version is specified. If models are absent from the selectors, check the directories and restart; if the native H3 nodes are absent, update the ComfyUI build.
```

## Key Capabilities
```text
- H3 conditioning: Up to three reference images, or a required first frame with an optional last frame.
- Alpha extraction: External mask, optional background-removal model, or built-in color keying with spill suppression and alpha erosion/dilation.
- Frame editing: Select and reorder frames, adjust per-frame offsets, and preview at the configured frame rate.
- Graph outputs: Six outputs expose raw frames, aligned RGBA frames, alpha masks, a sprite sheet, a loop preview, and atlas JSON.
- Asset exports: Sheets and per-action atlases feed a combined `_animations.json` manifest; aligned PNG frames and mirrored copies are optional.
- Format examples: `Animationstest/` contains the Mina sprite sheets, per-action atlases, a combined manifest, and a sample MP4.
```

## Quick Start / Clone
```bash
cd ComfyUI/custom_nodes
git clone https://github.com/Ercelcan/Comfyui-H3Anim.git
```
