DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to build a seamless walk cycle from a generated clip with H3 Game Sprites

Get a walk loop that resets cleanly instead of visibly jumping back to a start pose.

Short answer: Generate a walk clip in place, using the in-place (treadmill) walk phrasing so the engine controls movement; then save it as clips/walk.mp4; run python3 scripts/sprite_cut.py clips/walk.mp4 sprites/walk --frames 8 --loop. All steps.

Who it is forA 2D game developer whose character needs a walk animation for a side-scrolling or top-down level, and whose generated walk clip looks like it resets at the loop point.

The problemWhole-clip keyframes include the start-up and the settle back to idle, so a naive loop snaps back to the start of the walk.

The outcomeA set of walk frames chosen to form a seamless cycle, with a strip and GIF to review before import.

What you need first

  • ffmpeg installed locally
  • Python 3 with Pillow and numpy
  • A video model such as H3 / Hailuo 3 via OpenRouter, fal or MiniMax, or an ordinary video file you already have
  • An image model or illustrator for the character still (gen_still.py defaults to Nano Banana through OpenRouter and reads OPENROUTER_API_KEY)
  • Budget of roughly $0.60-0.70 per five-second clip plus a few cents per still, varying by provider

Steps

  1. Generate a walk clip in place, using the in-place (treadmill) walk phrasing so the engine controls movement.
  2. Save it as clips/walk.mp4.
  3. Run python3 scripts/sprite_cut.py clips/walk.mp4 sprites/walk --frames 8 --loop. (inferred, check the README)
  4. Open sprites/walk and check that the last frame flows into the first with no visible reset.
  5. Compare the metrics report feet drift figure against your engine's expected movement speed.

Prompt for your agent

Using the h3-game-sprites repo, run scripts/sprite_cut.py with --loop on <path to walk.mp4> and 8 frames, writing to sprites/walk. Report which frames were selected and whether the cycle is seamless, citing the metrics report.

Caveat. The README says the loop option finds a seamless cycle, but the result still needs a visual check in the GIF because the metrics alone may not catch every visible reset.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for gary149/h3-game-sprites and "Build a seamless walk cycle from a generated clip"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer