blender-syntax-operators

Document Blender operator syntax and patterns for bpy.types.Operator methods.

30|4|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package --skill blender-syntax-operators
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blender-syntax-operators
Source: https://github.com/OpenAEC-Foundation/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/syntax/blender-syntax-operators
Command: npx skills add https://github.com/OpenAEC-Foundation/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package --skill blender-syntax-operators

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for creating robust and error-free Blender operators, preventing common crashes and ensuring correct behavior.

Core Features & Use Cases

  • Operator Patterns: Learn essential patterns for execute(), invoke(), modal(), and poll() methods.
  • Version Compatibility: Understand context override changes and bl_idname requirements across Blender versions.
  • Anti-Patterns: Identify and avoid common mistakes that lead to crashes or unexpected behavior.
  • Use Case: When developing a new Blender addon, use this Skill to ensure your custom operators are correctly implemented, registered, and handle user interactions gracefully.

Quick Start

Refer to the 'blender-syntax-operators' skill to learn how to correctly implement the poll() method for a new Blender operator.

Frequently Asked Questions about blender-syntax-operators

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom Blender operator using bpy.types.Operator?

Creating a Blender operator requires implementing the execute, invoke, modal, or poll methods within the bpy.types.Operator class, alongside defining bl_idname and bl_options to handle user interactions and registration correctly.

What is the poll method used for in Blender addon development?

The poll method in Blender addon development checks whether an operator can run in the current context, preventing execution errors by validating UI states before the operator's execute or invoke methods are triggered.

How do context overrides work for Blender operators across versions?

Context overrides for Blender operators changed significantly in recent versions, requiring updated syntax to pass context arguments directly to execute or invoke methods, ensuring compatibility across Blender 3.x, 4.x, and 5.x.

Why does my Blender operator crash when invoked from the wrong context?

Your Blender operator crashes when invoked from the wrong context because the poll method is missing or fails to validate the current environment, an anti-pattern that allows execution when UI conditions are unmet.

What are common anti-patterns in bpy operator scripting?

Common anti-patterns in bpy operator scripting include skipping the poll method, using incorrect bl_idname conventions, and ignoring version-specific context override changes, all of which lead to unexpected crashes and addon instability.

Do I need to specify bl_options when registering a bpy.types.Operator?

You need to specify bl_options when registering a bpy.types.Operator to control execution behavior such as undo steps, blocking, or registration, ensuring the operator integrates predictably within the Blender environment.