Guide: Writing bpy that works on any Blender

Blender · 3D · MIT

What it does

The most useful page in the repo for anyone scripting Blender: how to look up enum values, node sockets and operator arguments before using them, find nodes by type because names are translated, the Principled BSDF inputs renamed in 4.0, the EEVEE engine name by version, slotted actions in 4.4 and Action.fcurves removed in 5.0, when an operator needs a viewport override, and working habits (small steps, name everything, apply scale). Our own test script met three of these exact traps on Blender 5.0.1.

Get it

Not served at this commit: server.py says guides are 'switched off while evals measure what the model does without them', and a test asserts get_guide is absent. The file is in the repo under MIT; copy it into a skill or a prompt.

Source on GitHub
Needs (the whole pack)

Blender 3.0 or newer, open with a window. Python 3.10 and uv. No key for the core tools or Poly Haven. The model generators need paid keys.

License

MIT, plus a separate terms file for data collection

License notes are on the pack's page

From

MCP for Blender

Everything from MCP for Blender in the gallery

Back to the Asset Library