Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

docs: the video MCP clip route runs the set alignment and holds a walk's size; no engine stage replaced by hand; changelog

Soohong Kim628f7153f8ae
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3b0e718..4c691c2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.
+## Unreleased
+
+- **Docs: a clip from a video MCP on your agent goes through the set stage and the size hold.** That route stopped at `video-loop`, so what `video-set` does for a set was left out. It now cuts a walk or run with `--anchor motion-auto` (the anchor that holds a clip with no end frame at its first frame's size; `video-loop`'s default for a walk, `body`, does not), takes `--fps` from the frames report, and ends with `video-cycle-align --view …` once a walk or run is cut in two or more directions (`SKILL.md` routes, [docs/video-pipeline.md](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre) with `Set` and `Size` rows in its ZCRE table, [docs/user-workflow.md](docs/user-workflow.md), the READMEs). `video-cycle-align` is in the pipeline's diagram and verb table. `SKILL.md` forbids replacing any engine stage — extraction, the loop cut, set alignment, loop repair — with a script of your own: the engine's own options first, the defect reported, a new clip only for what no stage can reach. [docs/qa-motion.md](docs/qa-motion.md) says its "regenerate that row" is for image rows; a video loop is repaired and aligned by the engine first. No code or output changes.
+
## v2.25.0 - Every view of an aligned walk starts as the same foot lands, read off the legs, and RIFE leaves no black between crossing legs
- **Output change: every frame RIFE makes, and where every aligned loop starts.** Frames made by RIFE (`video-cycle-align`, `video-set --align-cycles auto`, `video-loop` jump repair) are drawn differently wherever the legs cross or the flow is unsure; frames taken as filmed are untouched. Every loop `video-cycle-align` turns may start on a different frame: on its legs instead of its top edge, and, with views, on one foot for the whole set. A loop already aligned starts where the new rule says the next time it is aligned (it is read from `cycle.source/`).
diff --git a/README.es.md b/README.es.md
index 973156f..84c47fb 100644
--- a/README.es.md
+++ b/README.es.md
@@ -112,7 +112,7 @@ sprite-gen video-set --base side=still.png --states idle,walk,run,jump,attack --
# por elemento: video-canvas → video → video-frames → video-loop; set/table.md nombra cada resultado
```
-¿Generas clips con un MCP de vídeo conectado a tu agente? Con el de ZCRE (지크), el agente crea el clip con tu propia cuenta de ZCRE y sprite-gen lo recorta: `sprite-gen video-prompt --direction side --state walk --no-last-frame` imprime el prompt, y `video-frames` y `video-loop` reciben el mp4. Solo caminar, correr y saltar, porque Grok Imagine 1.5 de ZCRE no tiene fotograma final ([cómo](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
+¿Generas clips con un MCP de vídeo conectado a tu agente? Con el de ZCRE (지크), el agente crea el clip con tu propia cuenta de ZCRE y sprite-gen lo recorta: `sprite-gen video-prompt --direction side --state walk --no-last-frame` imprime el prompt, `video-frames` y `video-loop` reciben el mp4, y `video-cycle-align` da la misma duración de ciclo a una caminata recortada en varias direcciones. Solo caminar, correr y saltar, porque Grok Imagine 1.5 de ZCRE no tiene fotograma final ([cómo](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
¿Un reloj en una sola muñeca o una horquilla en un lado de la cabeza? Al voltear una vista hacia la derecha, el objeto pasa al otro lado, así que dibuja las vistas hacia la izquierda: `sprite-gen gen --direction side --facing left --handed "the black smartwatch=left wrist"` dice dónde está el objeto en esa vista, `video-set --facing right,left --handed …` filma cada vista lateral y diagonal en ambos sentidos desde su propia imagen, y `sprite-gen handed-check` comprueba fotograma a fotograma que un objeto marcado por color está en el lado correcto. Voltear sigue siendo lo predeterminado, porque dibujar las vistas izquierdas cuesta otro tanto ([cómo](docs/video-pipeline.md#handedness--an-item-on-one-side)).
diff --git a/README.fr.md b/README.fr.md
index 8cbaa68..8a28b0f 100644
--- a/README.fr.md
+++ b/README.fr.md
@@ -112,7 +112,7 @@ sprite-gen video-set --base side=still.png --states idle,walk,run,jump,attack --
# par élément : video-canvas → video → video-frames → video-loop ; set/table.md nomme chaque résultat
```
-Vous générez vos clips avec un MCP vidéo connecté à votre agent ? Avec celui de ZCRE (지크), l'agent crée le clip sur votre propre compte ZCRE et sprite-gen le découpe : `sprite-gen video-prompt --direction side --state walk --no-last-frame` affiche le prompt, puis `video-frames` et `video-loop` prennent le mp4. Marche, course et saut uniquement, car Grok Imagine 1.5 de ZCRE n'a pas d'image de fin ([comment](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
+Vous générez vos clips avec un MCP vidéo connecté à votre agent ? Avec celui de ZCRE (지크), l'agent crée le clip sur votre propre compte ZCRE et sprite-gen le découpe : `sprite-gen video-prompt --direction side --state walk --no-last-frame` affiche le prompt, puis `video-frames` et `video-loop` prennent le mp4, et `video-cycle-align` donne une même longueur de cycle à une marche découpée dans plusieurs directions. Marche, course et saut uniquement, car Grok Imagine 1.5 de ZCRE n'a pas d'image de fin ([comment](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
Une montre à un seul poignet, une barrette d'un seul côté de la tête ? Retournée, une vue tournée vers la droite met l'objet de l'autre côté : dessinez donc les vues tournées vers la gauche. `sprite-gen gen --direction side --facing left --handed "the black smartwatch=left wrist"` dit où est l'objet dans cette vue, `video-set --facing right,left --handed …` filme chaque vue de profil et de trois-quarts dans les deux sens à partir de sa propre image, et `sprite-gen handed-check` vérifie image par image qu'un objet marqué par sa couleur est du bon côté. Le retournement reste le défaut, car dessiner les vues de gauche coûte autant une seconde fois ([comment](docs/video-pipeline.md#handedness--an-item-on-one-side)).
diff --git a/README.ja.md b/README.ja.md
index 31c0b28..da26476 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -112,7 +112,7 @@ sprite-gen video-set --base side=still.png --states idle,walk,run,jump,attack --
# 項目ごとに: video-canvas → video → video-frames → video-loop; set/table.md が全結果に名前を付ける
```
-エージェントに接続した動画 MCP でクリップを作る場合: ZCRE(지크)の MCP なら、エージェントがあなた自身の ZCRE アカウントでクリップを作り、sprite-gen がそれを切り出します。`sprite-gen video-prompt --direction side --state walk --no-last-frame` がプロンプトを出し、`video-frames` と `video-loop` が mp4 を受け取ります。ZCRE の Grok Imagine 1.5 には終了フレームがないため、歩き・走り・ジャンプのみです([手順](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre))。
+エージェントに接続した動画 MCP でクリップを作る場合: ZCRE(지크)の MCP なら、エージェントがあなた自身の ZCRE アカウントでクリップを作り、sprite-gen がそれを切り出します。`sprite-gen video-prompt --direction side --state walk --no-last-frame` がプロンプトを出し、`video-frames` と `video-loop` が mp4 を受け取り、複数の方向で切り出した歩行は `video-cycle-align` が同じサイクル長に揃えます。ZCRE の Grok Imagine 1.5 には終了フレームがないため、歩き・走り・ジャンプのみです([手順](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre))。
片方の手首の時計や頭の片側のピンのように左右が違うキャラクターなら: 右向きの絵を反転すると小物が反対側に移るので、左向きは別に描きます。`sprite-gen gen --direction side --facing left --handed "the black smartwatch=left wrist"` がその向きで小物がどこにあるかをプロンプトに書き、`video-set --facing right,left --handed …` が横と斜めの向きをそれぞれ描いたスチルから両向き撮り、`sprite-gen handed-check` が色で目印をつけた小物が正しい側にあるかをフレームごとに確かめます。左向きを描くとその分費用がかかるため、既定は今まで通り反転です([手順](docs/video-pipeline.md#handedness--an-item-on-one-side))。
diff --git a/README.ko.md b/README.ko.md
index d7b3f2b..01c08b9 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -120,7 +120,7 @@ sprite-gen video-set --base side=still.png --states idle,walk,run,jump,attack --
# 항목별로: video-canvas → video → video-frames → video-loop; set/table.md 가 모든 결과의 이름을 담는다
```
-에이전트에 연결된 영상 MCP 로 클립을 만든다면: 지크(ZCRE) MCP 로 에이전트가 사용자 본인의 ZCRE 계정에서 클립을 만들고 sprite-gen 이 그 클립을 자른다. `sprite-gen video-prompt --direction side --state walk --no-last-frame` 가 프롬프트를 내고, 받은 mp4 는 `video-frames`·`video-loop` 가 받는다. ZCRE 의 Grok Imagine 1.5 에는 끝 프레임이 없어 걷기·달리기·점프만 된다([방법](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
+에이전트에 연결된 영상 MCP 로 클립을 만든다면: 지크(ZCRE) MCP 로 에이전트가 사용자 본인의 ZCRE 계정에서 클립을 만들고 sprite-gen 이 그 클립을 자른다. `sprite-gen video-prompt --direction side --state walk --no-last-frame` 가 프롬프트를 내고, 받은 mp4 는 `video-frames`·`video-loop` 가 받고, 여러 방향으로 자른 걷기는 `video-cycle-align` 이 한 주기 길이로 맞춘다. ZCRE 의 Grok Imagine 1.5 에는 끝 프레임이 없어 걷기·달리기·점프만 된다([방법](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
한쪽 손목의 시계, 머리 한쪽의 핀처럼 좌우가 다른 캐릭터라면: 오른쪽을 보는 그림을 뒤집으면 소품이 반대쪽으로 가니 왼쪽을 보는 방향은 따로 그린다. `sprite-gen gen --direction side --facing left --handed "the black smartwatch=left wrist"` 가 그 방향에서 소품이 어디 있는지 문장으로 넣고, `video-set --facing right,left --handed …` 가 옆·대각 방향을 각자 그린 스틸로 양쪽 다 찍으며, `sprite-gen handed-check` 가 색으로 표시된 소품이 맞는 쪽에 있는지 프레임마다 확인한다. 왼쪽을 따로 그리면 그만큼 값이 더 들어 기본은 지금처럼 반전이다([방법](docs/video-pipeline.md#handedness--an-item-on-one-side)).
diff --git a/README.md b/README.md
index 0e2bc10..ab62c3f 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,7 @@ sprite-gen video-set --base side=still.png --states idle,walk,run,jump,attack --
# per item: video-canvas → video → video-frames → video-loop; set/table.md names every result
```
-Making clips through a video MCP connected to your agent? With ZCRE's (지크), the agent makes the clip on your own ZCRE account and sprite-gen cuts it: `sprite-gen video-prompt --direction side --state walk --no-last-frame` prints the prompt, then `video-frames` and `video-loop` take the mp4. Walk, run and jump only, because ZCRE's Grok Imagine 1.5 has no end frame ([how](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
+Making clips through a video MCP connected to your agent? With ZCRE's (지크), the agent makes the clip on your own ZCRE account and sprite-gen cuts it: `sprite-gen video-prompt --direction side --state walk --no-last-frame` prints the prompt, then `video-frames` and `video-loop` take the mp4, and `video-cycle-align` gives a walk cut in several directions one cycle length. Walk, run and jump only, because ZCRE's Grok Imagine 1.5 has no end frame ([how](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
A watch on one wrist, a pin on one side of the head? Turned over, a right-facing view puts it on the other side, so draw the left-facing views instead: `sprite-gen gen --direction side --facing left --handed "the black smartwatch=left wrist"` says where the item is in that view, `video-set --facing right,left --handed …` films each side and diagonal view both ways from its own still, and `sprite-gen handed-check` checks, frame by frame, that a colour-marked item is on the right side. Mirroring stays the default, since drawing the left views costs as much again ([how](docs/video-pipeline.md#handedness--an-item-on-one-side)).
diff --git a/README.zh-Hans.md b/README.zh-Hans.md
index 39f6ca4..3638099 100644
--- a/README.zh-Hans.md
+++ b/README.zh-Hans.md
@@ -112,7 +112,7 @@ sprite-gen video-set --base side=still.png --states idle,walk,run,jump,attack --
# 每项依次:video-canvas → video → video-frames → video-loop;set/table.md 列出每个结果的名称
```
-通过连接到智能体的视频 MCP 生成片段?使用 ZCRE(지크)的 MCP 时,智能体用你自己的 ZCRE 账户生成片段,sprite-gen 负责切割:`sprite-gen video-prompt --direction side --state walk --no-last-frame` 输出提示词,`video-frames` 和 `video-loop` 接收 mp4。ZCRE 的 Grok Imagine 1.5 没有结束帧,因此仅支持行走、奔跑和跳跃([方法](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre))。
+通过连接到智能体的视频 MCP 生成片段?使用 ZCRE(지크)的 MCP 时,智能体用你自己的 ZCRE 账户生成片段,sprite-gen 负责切割:`sprite-gen video-prompt --direction side --state walk --no-last-frame` 输出提示词,`video-frames` 和 `video-loop` 接收 mp4,多个方向的行走循环再由 `video-cycle-align` 对齐为同一周期长度。ZCRE 的 Grok Imagine 1.5 没有结束帧,因此仅支持行走、奔跑和跳跃([方法](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre))。
一只手腕上的手表、头一侧的发夹这类左右不同的角色:把朝右的画面翻转,物件就到了另一侧,所以朝左的方向要单独画。`sprite-gen gen --direction side --facing left --handed "the black smartwatch=left wrist"` 会在提示词里写明该方向下物件的位置,`video-set --facing right,left --handed …` 用各自画好的静帧把侧面和斜向方向两边都拍,`sprite-gen handed-check` 逐帧检查用颜色标记的物件是否在正确一侧。单独画朝左方向要多花同样的费用,所以默认仍是翻转([方法](docs/video-pipeline.md#handedness--an-item-on-one-side))。
diff --git a/SKILL.md b/SKILL.md
index eb8521a..a3c71a9 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -101,7 +101,7 @@ hold the arms still, and check the loop with `handed-check --state walk`.
| Continue or edit an existing clip | `video-extend`, `video-edit` | [video](docs/video.md) |
| Grok video sprites | `video-set` | [video-pipeline](docs/video-pipeline.md) |
| A soft part of a walk loop follows the body (a chest, a belly): an ellipse in the first cell, after `video-cycle-align` | `video-follow` | [video-pipeline](docs/video-pipeline.md#6-follow-through--video-follow) |
-| Video sprites from a clip your agent makes with a connected video MCP (ZCRE, 지크) | `video-canvas`, `video-prompt --no-last-frame`, the agent's own MCP tools (quote, user approval, generate, save the mp4), then `video-frames`, `video-loop`. sprite-gen never calls the MCP. Walk, run and jump only: ZCRE's `grok-imagine-video-1.5` has no end frame, so idle, attack and diagonal walks are refused unless `--unpinned` | [video-pipeline](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre) |
+| Video sprites from a clip your agent makes with a connected video MCP (ZCRE, 지크) | `video-canvas`, `video-prompt --no-last-frame`, the agent's own MCP tools (quote, user approval, generate, save the mp4), then `video-frames` and `video-loop` (a walk or run with `--anchor motion-auto`, which holds its size), and for a walk or run cut in two or more directions `video-cycle-align --view …` over their loop directories. `video-set` is not run on this route, so the set stage it runs by default (`--align-cycles auto`) is yours to run. sprite-gen never calls the MCP. Walk, run and jump only: ZCRE's `grok-imagine-video-1.5` has no end frame, so idle, attack and diagonal walks are refused unless `--unpinned` | [video-pipeline](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre) |
| Ordinary image or edit | `gen --provider codex` or `gen --provider grok` (subscription routes) | [gen](docs/gen.md) |
| Image generation with no login available (server, container, SaaS) | `gen --provider openai` — server/SaaS route on `OPENAI_API_KEY`, **billed per call**, never a default or a fallback | [gen](docs/gen.md#subscription-first--openai-is-named-or-it-does-not-run) |
| Base and direction anchors | `anchor` | [directional-anchor-workflow](docs/directional-anchor-workflow.md) |
@@ -137,4 +137,4 @@ Scene creation consumes finished assets and remains optional. Asset metadata own
## Contracts and advanced tools
-[run-contract](docs/run-contract.md) owns numeric requests, run layout, atomic publication and curated exports. [architecture](docs/architecture.md) explains domain ownership. [docs index](docs/README.md) lists every specialized feature and QA procedure. `sprite-gen --help` derives the command map from the package catalog. Never replace canonical extraction with temporary crop scripts while presenting the result as a pipeline output.
+[run-contract](docs/run-contract.md) owns numeric requests, run layout, atomic publication and curated exports. [architecture](docs/architecture.md) explains domain ownership. [docs index](docs/README.md) lists every specialized feature and QA procedure. `sprite-gen --help` derives the command map from the package catalog. Never replace an engine stage — extraction, the loop cut, set alignment, loop repair — with a script of your own while presenting the result as a pipeline output. Where a stage's result is wrong, use the engine's own options first (another cut with `video-loop --max-len` or `--cycle fixed`, `video-cycle-align --length` or `--between nearest`), keep the engine's result as the comparison, report the defect against the engine, and name in the delivery each stage done by hand and why. A new clip is for what no stage can reach: the drawing, the motion itself, a clip that holds no whole cycle ([loop-review](docs/loop-review.md)).
diff --git a/docs/README.md b/docs/README.md
index 26bc397..9ab5880 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -117,7 +117,7 @@ grouping is derived from `sprite_gen/_modules.py`, the one taxonomy table.
| Doc | Owns |
|---|---|
-| [qa-motion.md](qa-motion.md) | Motion Continuity — the blocking judgement of a row as motion |
+| [qa-motion.md](qa-motion.md) | Motion Continuity of an image row (Pipeline A) — the blocking judgement of a row as motion |
## Runtime & process
diff --git a/docs/qa-motion.md b/docs/qa-motion.md
index 7e46a5f..888a433 100644
--- a/docs/qa-motion.md
+++ b/docs/qa-motion.md
@@ -1,6 +1,6 @@
# Motion Continuity QA (BLOCKING) — sprite-gen reference
-> Owns: Motion Continuity — the blocking judgement of a row as motion · Index: [docs/README.md](README.md)
+> Owns: Motion Continuity of an image row (Pipeline A, atlas rows) — the blocking judgement of a row as motion. A video loop (Pipeline B) is repaired and aligned by the engine before any new clip: [loop-repair](loop-repair.md), [loop-review](loop-review.md) · Index: [docs/README.md](README.md)
> `SKILL.md` 허브에서 분리한 시나리오 상세. 추출·아틀라스 QA 를 통과한 행을 **모션으로서** 판정할 때 이 문서를 따른다. Motion Continuity 는 BLOCKING 이다 — 판정 기준 전체가 여기 있다.
@@ -27,7 +27,9 @@ The GIF is exported through the clean transparent GIF path (dedicated transparen
## 실패 시
-If a row fails motion continuity (static bobbing, jitter, anatomy break, identity drift, or a hard loop seam), **regenerate that row**. Do not repair motion by drawing or re-timing frames locally.
+If an image row fails motion continuity (static bobbing, jitter, anatomy break, identity drift, or a hard loop seam), **regenerate that row**. Do not repair motion by drawing or re-timing frames locally.
+
+This rule is for image rows. A video loop's jump frames, its cut and its set length are the engine's to repair ([loop-repair](loop-repair.md), [loop-review](loop-review.md)); a new clip comes after those, for what they cannot reach.
Record the per-state motion verdict in `qa-notes.md`.
diff --git a/docs/user-workflow.md b/docs/user-workflow.md
index e960f58..bb507bb 100644
--- a/docs/user-workflow.md
+++ b/docs/user-workflow.md
@@ -11,6 +11,8 @@ This document owns the conversation flow. `sprite_gen/workflow/catalog.py` owns
Inspect the request before asking anything. Pass choices already named by the user as explicit arguments. An existing sprite base image skips base-image generation and its provider question. An image request may still attach references to `gen --ref` for editing.
+A clip from a video MCP on the agent (ZCRE) is a third way to animate the base. `workflow` does not offer it: its motion methods are the two above, so a request that names the MCP goes to that row of the [SKILL](../SKILL.md) execution routes. The Grok video method has one step, `video-set`, which runs its own canvas, clip, frames, loop and set alignment. On the MCP route each stage is a verb the agent runs: `video-canvas` → `video-prompt --no-last-frame` → the agent's MCP tools → `video-frames` → `video-loop` (`--anchor motion-auto` for a walk or run) → `video-cycle-align`, once a walk or run is cut in two or more directions ([video-pipeline](video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre)).
+
```bash
$SPRITE_GEN_ROOT/.venv/bin/sprite-gen workflow --kind sprite
$SPRITE_GEN_ROOT/.venv/bin/sprite-gen workflow --kind image
diff --git a/docs/video-pipeline.md b/docs/video-pipeline.md
index d9d4f56..514dd6e 100644
--- a/docs/video-pipeline.md
+++ b/docs/video-pipeline.md
@@ -10,8 +10,8 @@ hand on 2026-09-08 (15 loops: 3 directions × 5 states) and the rules below are
ones that survived that day.
```
-still ──video-canvas──▶ canvas.png ──video──▶ clip.mp4 ──video-frames──▶ keyed/*.png ──video-loop──▶ strip · gif · webp
- │ ▲ └── video-set runs all four per (direction, state)
+still ──video-canvas──▶ canvas.png ──video──▶ clip.mp4 ──video-frames──▶ keyed/*.png ──video-loop──▶ strip · gif · webp ──video-cycle-align──▶ one cycle length (a set)
+ │ ▲ └── video-set runs all four per (direction, state), then aligns each walk or run across its directions
└──video-prompt──▶ your agent's video MCP (ZCRE)
```
@@ -23,6 +23,7 @@ still ──video-canvas──▶ canvas.png ──video──▶ clip.mp4 ─
| `sprite-gen video-frames` | `sprite_gen/video/frames.py` | mp4 → `raw/`, `keyed/` RGBA frames + report |
| `sprite-gen video-loop` | `sprite_gen/video/loop.py` | keyed frames → `cycle/`, `<name>.strip.png` + `.strip.json`, `<name>.gif`, `<name>.webp` + report |
| `sprite-gen video-set` | `sprite_gen/video/batch.py` | bases × states → one folder per item, `set.report.json`, `table.md` |
+| `sprite-gen video-cycle-align` | `sprite_gen/video/align.py` | the loop directories of one walk or run, one per direction → one cycle length, each loop turned to start on a foot strike, + report ([loop repair](loop-repair.md) section 4) |
| `sprite-gen video-follow` | `sprite_gen/video/follow.py` | a loop directory + an ellipse → the strip, GIF and WebP with that region following the body ([section 6](#6-follow-through--video-follow)) |
Wrappers: `scripts/video_canvas.py`, `scripts/video_frames.py`, `scripts/video_loop.py`,
@@ -257,8 +258,12 @@ films from the base itself. Side and diagonal walks, and every other state, film
sprite-gen never calls a video MCP. When your own agent (Claude, Codex) has one connected — ZCRE's
remote MCP (`https://mcp.zcre.ai/mcp`, signed in with your own ZCRE account, paid from your own
credits, under ZCRE's terms) — the agent makes the clip with that MCP's tools and sprite-gen does the
-rest: `video-prompt` prints the prompt `video-set` would send, and `video-frames` and `video-loop` read
-the mp4 the agent saved. What crosses the boundary is a PNG, a prompt and an mp4.
+rest, stage by stage, with the verbs `video-set` runs: `video-prompt` prints the prompt `video-set`
+would send, `video-frames` and `video-loop` cut each mp4 the agent saved, and for a walk or run cut in
+two or more directions `video-cycle-align` gives them one cycle length, each turned to start on a
+foot strike ([loop repair](loop-repair.md) section 4). `video-set` itself is not run on this route, so
+what it does for a set happens only when you run it. What crosses the boundary is a PNG, a prompt and
+an mp4.
```bash
sprite-gen video-canvas --still still.png --state walk --facing right --out item/canvas.png --report item/canvas.report.json
@@ -268,17 +273,34 @@ sprite-gen video-prompt --direction side --state walk --facing right --no-last-f
# duration, the credits shown to the user and approved, create_generation with that quote, query_zcre
# status until it succeeds, the output saved as item/clip.mp4
sprite-gen video-frames --clip item/clip.mp4 --out-dir item/frames --spill auto --reference item/canvas.png
-sprite-gen video-loop --frames-dir item/frames/keyed --out-dir item/loop --fps 24 --state walk --cycle auto --facing right --name side-walk
+sprite-gen video-loop --frames-dir item/frames/keyed --out-dir item/loop --fps <fps in item/frames/frames.report.json> --state walk --cycle auto --anchor motion-auto --facing right --name side-walk
+# a set, once the walk is cut in every direction (each as above, in its own folder):
+sprite-gen video-cycle-align --loop-dir front/loop --loop-dir side/loop --loop-dir back/loop --view front --view side@right --view back --report walk.cycle-align.json
```
+A walk or run is cut with `--anchor motion-auto`. A clip on this route has no end frame to bring it
+back to its first frame's size, and `motion-auto` is the anchor that measures the size over the clip
+and holds it before the cycle search
+([section 4](#4-loop--period-first-seam-second-then-the-gait-floor)); `video-loop`'s own default for a
+walk or run, `body`, does not. A jump takes no `--anchor`: `motion-auto` is refused for a state that
+is not a walk or run. `--fps` is the frames report's own, never a number written in by hand.
+
+The set stage is the same step `video-set` runs after its loops are cut (`--align-cycles auto`, its
+default): one `--loop-dir` per direction of the same walk or run, one `--view` each in the same
+order, so that every loop starts as the same own foot lands wherever its view can tell the feet
+apart. A frame that falls between two source frames is made by RIFE, and the command fails where one
+is needed and RIFE is not installed; `--between nearest` makes none.
+
`--character` or `--motion` words that turn the subject another way than `--facing`, or put a
`--handed` item on its other side, come back in `warnings`; the prompt is the same either way
([prompt-assembly](prompt-assembly.md)).
`video-prompt --json` also gives the duration (the state's own, as `video-set`), whether the clip
-ends on the canvas (`last_frame`), the loop cut (`cycle`) and these commands with placeholders; a
-front or back walk adds `start_still`, the mid-step redraw `video-set` makes before its canvas
-(`sprite-gen gen --ref`, your image provider). `--character`, `--motion` and `--model` reach the
+ends on the canvas (`last_frame`), the loop cut (`cycle`) and the canvas, clip, frames and loop
+commands with placeholders; a front or back walk adds `start_still`, the mid-step redraw `video-set`
+makes before its canvas (`sprite-gen gen --ref`, your image provider). Its `loop` command names no
+`--anchor` and it lists no set command: add `--anchor motion-auto` for a walk or run, and run
+`video-cycle-align` for a set, as above. `--character`, `--motion` and `--model` reach the
prompt as they reach `build_prompt`. What the ZCRE route supports:
| | Through ZCRE's MCP |
@@ -290,11 +312,13 @@ prompt as they reach `build_prompt`. What the ZCRE route supports:
| Cover image | The mp4 also holds a one-frame mjpeg cover (`attached_pic`); `video-frames` skips it (`cover_streams`) and reads the first video stream that is not one (`stream_index`). |
| Picture | H.264 `yuv420p` (4:2:0), 24 fps, as a `sprite-gen video` clip; the frames report records `codec` and `pix_fmt`. |
| Side facing | `video-set`'s facing observation is not run on this route; check the still faces `--facing`. |
+| Set | `video-set`'s cycle alignment (`--align-cycles auto`) is not run on this route: once a walk or run is cut in two or more directions, run `video-cycle-align` on their loop directories, with each one's `--view`. |
+| Size | A clip here has no end frame, so a walk or run may grow or shrink as it plays: cut it with `--anchor motion-auto`, which holds the size before the search (section 4). `video-loop`'s default anchor for a walk or run, `body`, does not hold it. |
Measured 2026-10-04, one side walk end to end on that route: a 1024² still, `video-canvas` (square,
1.8 s), 720p 3 s, quoted and charged 52 credits, 33.6 s from submission to `succeeded`; the clip was
960×960, 24 fps, 73 frames, H.264 `yuv420p` with an AAC track and a cover image; `video-frames` kept
-73 frames and no edge contact, and `video-loop --cycle auto` cut a periodic 20-frame walk (seam 0.72)
+73 frames and no edge contact, and `video-loop --cycle auto`, at its default anchor (`body`), cut a periodic 20-frame walk (seam 0.72)
with three frames remade by RIFE and a jolt warning (index 0.85), as a Pro walk can carry.
### Handedness — an item on one side