Blender-Developer-Tools
Health Uyari
- License — License: NOASSERTION
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Skills, rules, snippets, and a starter template for Blender Python development. 8 skills, 4 rules, 1 template, 10 snippets targeting Blender 5.1 with 4.5 LTS fallback.
Blender Developer Tools
Skills, rules, snippets, and a starter template for Blender Python development
12 skills • 6 rules • 2 templates • 17 snippets
Overview
This repository ships 12 skills, 6 rules, 2 templates, and 17 snippets for Blender Python development targeting Blender 5.1 (current stable) with Blender 4.5 LTS fallback support.
The content is consumed by AI coding agents (Cursor, Claude Code, any MCP-capable client) when working on Blender add-ons, geometry nodes scripts, batch pipelines, or animation tooling. There is no build step. Edit the markdown and Python files directly.
| Layer | Role |
|---|---|
| Skills | Guided workflows: scaffolding, operators, panels, properties, mesh and bmesh, headless batch, slotted actions, geometry nodes, procedural materials, depsgraph queries, drivers and handlers, bl_info migration |
| Rules | Guardrails for the most common AI mistakes: ops-in-loops, bmesh leaks, legacy bl_info only, prop assignments, deprecated context-copy override, per-element loops over bulk mesh data |
| Templates | A working Extensions Platform add-on starter and a headless batch script starter |
| Snippets | 17 small standalone Python files demonstrating canonical patterns |
Supported Blender versions
| Version | Status |
|---|---|
| Blender 5.1.x | Primary target (all examples assume 5.1) |
| Blender 4.5 LTS | Fallback supported (skills show both code paths where 4.x and 5.x APIs diverge) |
| Blender 5.2 LTS | Sweep planned for July 2026 (see ROADMAP.md) |
Examples
Runnable, smoke-gated demos live in examples/ — each is executed headless on
both Blender 4.5 LTS and 5.1 by the blender-smoke workflow, so the screenshots reflect code
that actually runs. Browse them in the
examples gallery.
|
swatch-gridA procedural-materials swatch grid — Principled metal and dielectric, the emission pattern, |
|
turntableA slotted-actions Z-rotation turntable keyed through the cross-version channelbag path |
|
gn-sdf-remeshA Geometry Nodes SDF remesh ( |
|
depsgraph-exportA depsgraph-evaluated export — builds a cube with |
|
wave-displaceBulk vertex IO at real scale — 9,409 vertices displaced into a standing wave with one |
|
driver-waveA |
|
bmesh-gearA 14-tooth gear built entirely with bmesh — with |
|
shader-node-groupOne reusable |
How content is organized
skills/<name>/SKILL.md - 12 skill files, YAML frontmatter, one canonical pattern each
rules/<name>.mdc - 6 rule files, anti-pattern + correction
templates/<name>/ - 2 template directories (extension-addon-template, headless-batch-script-template)
snippets/<name>.py - 17 standalone Python snippets, 5 to 50 lines each
Using rules in Cursor
The .mdc files in rules/ apply automatically when Cursor opens a Blender Python project, scoped by the globs in each rule's frontmatter. The six rules are:
prefer-data-over-ops-in-loops: flagsbpy.ops.*calls inside object iterationalways-free-bmesh: flagsbmesh.new()without pairedbm.free()intry/finallytarget-extensions-platform-format: flags add-ons missingblender_manifest.tomltype-annotate-props-and-defend-context: flagsbpy.propsassignment form and unguardedcontext.active_objectprefer-temp-override-over-context-copy: flagsbpy.context.copy()passed to operators (deprecated 4.x, removed 5.x)use-foreach-set-for-bulk-data: flags Python loops overmesh.verticessettingco, normals, or other per-element bulk data
Symlink or clone this repo, then point Cursor at it as a skills/rules source.
Using the templates
templates/extension-addon-template/ is a working Blender extension. Copy the directory, edit blender_manifest.toml (id, version, name, maintainer), and install via Edit > Preferences > Get Extensions > Install From Disk. The template registers an Operator, a Panel, and a PropertyGroup, and demonstrates the register_classes_factory pattern with symmetric register() and unregister().
templates/headless-batch-script-template/ is a working starter for unattended Blender batch jobs. It opens a .blend, optionally adds and applies a modifier to every mesh, and exports to glTF, with explicit exit codes for CI integration. Run with blender --background <input.blend> --python script.py -- --output ....
Snippets
Each snippet is a standalone Python file under snippets/. They are not loaded as a package. Open one, copy the relevant lines into your script, and adapt the names. Each file's header comment cites the Blender doc URL or research section the pattern came from.
Canonical references
| Resource | Use it for |
|---|---|
| Blender 5.1 Python API | Authoritative reference for current stable APIs |
| Blender 4.5 LTS Python API | LTS reference when targeting 4.5 |
| Extensions Platform manual | blender_manifest.toml schema, hosting, install flow |
| developer.blender.org | Release notes, breaking change tracking, design docs |
When community content (Stack Overflow, older add-on source) conflicts with the official docs, prefer the docs. The 2.x to 4.x to 5.x churn around Actions, Extensions, and property handling has invalidated a lot of older material.
Roadmap
See ROADMAP.md. v0.2.0 shipped procedural materials, depsgraph queries, drivers and app handlers, bl_info to manifest migration, two new rules, and the headless batch script template. v0.3.0 candidates include modal operators, USD pipelines, and mathutils patterns.
License
Copyright (c) 2026 TM Hospitality Strategies. Licensed under CC-BY-NC-ND-4.0.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi







