blender-python-addon

blender-python-addon is a cursor rule for Cursor from PatrickJS/awesome-cursorrules. It costs 0 tokens per session (524 once invoked), scanned A, original, CC0-1.0.

A set of Python guidelines for creating Blender add-ons, which are extensions that add tools or interfaces to Blender.

In plain words
What is it for?
Use it when building Blender operators, panels, settings, preferences, utilities, and scripts that work with scene data.
Why use it?
It helps keep add-ons properly structured, registered, tested, and compatible with Blender’s programming interface.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when building Blender operators, panels, settings, preferences, utilities, and scripts that work with scene data.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/blender-python-addon
About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 41,203 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for blender-python-addon

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/blender-python-addon/github.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/blender-python-addon)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/blender-python-addon"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/blender-python-addon/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blender-python-addon

Your own site · 80×15
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/blender-python-addon"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/blender-python-addon.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00524
Opus 5.5 $0.00000 $0.00210
Sonnet 5.5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00052

Measured 3mo ago against content hash 92b9e9201680, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

blender-python-addon scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

rules/blender-python-addon.mdc · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Blender Python Add-on Rules

Add-on Structure

  • Keep add-on entry points in __init__.py with clear register() and unregister() functions.
  • Group operators, panels, properties, preferences, and utilities into separate modules for non-trivial add-ons.
  • Use bl_info or blender_manifest.toml according to the Blender version and packaging target.
  • Keep UI labels concise and user-facing text translatable where appropriate.

API Usage

  • Use bpy.types.Operator for actions, bpy.types.Panel for UI, and bpy.types.PropertyGroup for grouped settings.
  • Define bl_idname, bl_label, and bl_options explicitly.
  • Validate context in poll() before enabling operators.
  • Use invoke() for interactive setup and execute() for the actual operation.
  • Return {'FINISHED'} or {'CANCELLED'} consistently.
  • Use dependency graph updates and evaluated objects when reading final scene state.

Data and Properties

  • Register custom properties through PropertyGroup classes instead of loose global state.
  • Store add-on preferences in AddonPreferences.
  • Use PointerProperty, CollectionProperty, and typed properties with names and descriptions.
  • Clean up custom properties and handlers during unregister().

Safety and Performance

  • Do not run destructive scene operations without explicit user action.
  • Avoid blocking UI work in modal operators; use timers or modal state machines for long operations.
  • Batch mesh changes and use bmesh when editing mesh data programmatically.
  • Avoid repeatedly scanning large scenes in draw methods.
  • Keep file paths configurable and use Blender path utilities.

Testing and Debugging

  • Test scripts in a clean Blender profile and a representative production scene.
  • Add smoke tests that import the add-on, register it, run core operators, and unregister cleanly.
  • Log actionable messages with self.report() for user-facing operator feedback.
  • Keep version-specific API differences isolated behind helper functions.

Read the full file on GitHub · 53 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 53 lines · 0 tokens per session scan A 92b9e9201680

Subscribe to this mod's changes

blender-python-addon is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (41,203 stars, last pushed 6mo ago), licensed CC0-1.0. It costs nothing until one of its globs matches a file; then it loads 524 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

blender-python-addon compared with cursor rules from other repositories

blender-python-addon next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
blender-python-addonPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A0Cursor
database-algorithm-rulesholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA3Cursor
python-django-generalholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA195Cursor
python-general-coding-standardsholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA140Cursor
python-general-styleholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA0Cursor
django-modelsholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA78Cursor
django-urlsholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA57Cursor