ldraw-mecha

github.com

Give an LDraw LEGO model to an AI agent and get Blender animation code back after it infers the mechanisms.

Pricing
Open source
Published
Nov 7, 2026

Next steps

What it does

ldraw-mecha is an open project where an AI agent reverse-engineers mechanisms from an LDraw (.mpd) source, plans interactions between parts, and generates Blender Python to rig and animate the model. The Show HN demo and GitHub README document the agent workflow from inference to animation.

Use cases

  • Animate a mechanical LDraw model without hand-writing all Blender rigs
  • Study how an agent infers joints from LDraw source
  • Prototype educational demos of LEGO mechanisms with AI help

Frequently asked questions

Is it open source?
Yes. The project is on GitHub at anteloc/ldraw-mecha.
What input format?
LDraw models, typically .mpd source files.
What is the output?
Blender Python that rigs and animates the inferred mechanisms.
Is LEGO a trademark note?
LEGO is a trademark of the LEGO Group; the project works with the LDraw community format.
Log in to join the discussion