EL4CTEO/blender-skills / skills/blender-addon-development
blender-addon-development
VerifiedWrite Blender 5.3 add-ons as extensions - blender_manifest.toml, operators/panels/menus/property groups/preferences, bpy.props rules after 5.0, undo/redo, modal and timer patterns, gpu drawing (no bgl), bundling Python wheels, CLI validate/build/install, testing headless, extensions platform publishing. Use when creating or fixing a Blender add-on, tool, or UI.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.3 KB |
| assets/addon_template/__init__.py | script | 661 B |
| assets/addon_template/blender_manifest.toml | config | 832 B |
| assets/addon_template/operators.py | script | 1.3 KB |
| assets/addon_template/ui.py | script | 877 B |
assets/addon_template/operators.py
View on GitHubimport bpy
from bpy.props import EnumProperty, FloatProperty
class MYTOOL_PG_settings(bpy.types.PropertyGroup):
distance: FloatProperty(name="Distance", default=0.1, min=0.0, soft_max=10.0, unit="LENGTH")
axis: EnumProperty(name="Axis", items=(("X", "X", ""), ("Y", "Y", ""), ("Z", "Z", "")), default="Z")
class MYTOOL_OT_offset_selected(bpy.types.Operator):
"""Move selected objects along an axis""" # tooltip
bl_idname = "my_tool.offset_selected"
bl_label = "Offset Selected"
bl_options = {"REGISTER", "UNDO"} # UNDO: one undo step; REGISTER: redo panel
distance: FloatProperty(name="Distance", default=0.1, unit="LENGTH")
axis: EnumProperty(name="Axis", items=(("X", "X", ""), ("Y", "Y", ""), ("Z", "Z", "")), default="Z")
@classmethod
def poll(cls, context):
return context.mode == "OBJECT" and bool(context.selected_objects)
def invoke(self, context, event):
s = context.scene.my_tool # start from the panel settings
self.distance, self.axis = s.distance, s.axis
return self.execute(context)
def execute(self, context):
i = "XYZ".index(self.axis)
for ob in context.selected_objects:
ob.location[i] += self.distance
self.report({"INFO"}, f"Moved {len(context.selected_objects)} objects")
return {"FINISHED"}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |