/blender-bim-sverchok:blender-core-versionsfrom Blender por código, BIM (Bonsai e IfcOpenShell) y Sverchok
Use when writing Blender Python code that must work across multiple versions (3.x/4.x/5.x), or when migrating scripts between Blender versions. Prevents breakage from renamed APIs, removed modules (bgl in 5.0), and changed function signatures. Provides the complete breaking changes matrix, deprecation timeline, and version-safe coding patterns. Keywords: Blender version, migration, deprecated, breaking change, bgl removal, bpy.app.version, version compatibility, 3.x, 4.x, 5.x, API changes, which Blender version, what changed in Blender 4.
Ships in Blender por código, BIM (Bonsai e IfcOpenShell) y Sverchok. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
# Blender 3.x / 4.x / 5.x: ALWAYS use tuple comparison for version checks
import bpy
major, minor, patch = bpy.app.version # e.g., (4, 2, 0)
# Version-safe conditional
if bpy.app.version >= (4, 0, 0):
# Blender 4.0+ code path
pass
else:
# Blender 3.x fallback
pass
See references/methods.md for complete version detection API.
| Blender | Python | VFX Platform |
|---|---|---|
| 3.x | 3.10 | 2023 |
| 4.0 | 3.10 | 2023 |
| 4.1 | 3.11 | 2024 |
| 4.2 LTS | 3.11 | 2024 |
| 4.3 | 3.11 | 2024 |
| 4.4 | 3.11 | 2024 |
| 4.5 LTS | 3.11 | 2024 |
| 5.0 | 3.11 | 2025 |
| 5.1 | 3.13 | 2026 |
| Change | Removed In | Migration |
|---|---|---|
Context override dicts on bpy.ops | 4.0 | context.temp_override() |
MeshEdge.bevel_weight / .crease | 4.0 | mesh.attributes.get("bevel_weight_edge") |
obj.face_maps | 4.0 | Integer face attributes |
bone.layers[i] / pose.bone_groups | 4.0 | bone.collections |
NodeTree.inputs/outputs.new() | 4.0 | NodeTree.interface.new_socket() |
| Principled BSDF socket names | 4.0 | Renamed: Subsurface Weight, Specular IOR Level, etc. |
3D_UNIFORM_COLOR shader name | 4.0 | POLYLINE_UNIFORM_COLOR |
| Python OBJ/PLY importers | 4.0 | bpy.ops.wm.obj_import/export |
Mesh.use_auto_smooth | 4.1 | Mesh.corner_normals + Smooth by Angle modifier |
Light probe CUBEMAP/PLANAR/GRID | 4.1 | SPHERE / PLANE / VOLUME |
mat.cycles.displacement_method | 4.1 | mat.displacement_method |
blender_manifest.toml required | 4.2 | Replace bl_info dict with TOML manifest |
EEVEE → BLENDER_EEVEE_NEXT | 4.2 | Check identifier string |
bpy.types.AttributeGroup | 4.3 | AttributeGroupMesh, AttributeGroupPointCloud, etc. |
| Grease Pencil API rewrite | 4.3 | Complete API rewrite; see migration guide |
| EEVEE legacy properties | 4.3 | 40+ properties removed |
Subclass __init__ must call super() | 4.4 | Forward *args, **kwargs to parent |
bpy.types.Sequence → bpy.types.Strip | 4.4 | Rename all Sequence references |
| Slotted Actions system | 4.4 | action.layers[0].strips[0].channelbag() |
bgl module | 5.0 | gpu module (MANDATORY) |
scene['cycles'] dict access | 5.0 | Attribute access on RNA properties |
scene.node_tree (compositor) | 5.0 | scene.compositing_node_group |
brush.sculpt_tool | 5.0 | brush.sculpt_brush_type |
action.fcurves legacy API | 5.0 | Slotted Actions channelbag API |
VSE end_frame | 5.0 | length property |
| VSE strip time property renames | 5.1 | frame_final_duration → duration, etc. (removal in 6.0) |
| Python 3.13 | 5.1 | Check stdlib changes |
ALWAYS use bpy.app.version tuple comparison. NEVER parse bpy.app.version_string.
# Blender 3.x / 4.x / 5.x: Version-safe conditional pattern
import bpy
if bpy.app.version >= (5, 0, 0):
# Blender 5.0+ code
comp_tree = scene.compositing_node_group
elif bpy.app.version >= (4, 0, 0):
# Blender 4.0–4.x code
comp_tree = scene.node_tree
else:
# Blender 3.x code
comp_tree = scene.node_tree
ALWAYS prefer hasattr() checks over version comparisons when testing for a specific API.
# Blender 3.x / 4.x / 5.x: Feature detection pattern
import bpy
# Prefer feature detection over version check
if hasattr(bpy.types, "AttributeGroupMesh"):
# Blender 4.3+ — type-specific attribute groups
pass
else:
# Blender < 4.3 — generic AttributeGroup
pass
# For method existence
mesh = bpy.context.active_object.data
if hasattr(mesh, "corner_normals"):
# Blender 4.1+ — use corner_normals
normals = mesh.corner_normals
else:
# Blender < 4.1 — use legacy auto_smooth
mesh.use_auto_smooth = True
# Blender 3.x: LEGACY context override (BROKEN in 4.0+)
override = {"object": obj, "active_object": obj}
bpy.ops.object.modifier_apply(override, modifier="Boolean")
# Blender 4.0+: temp_override (REQUIRED)
with bpy.context.temp_override(object=obj, active_object=obj):
bpy.ops.object.modifier_apply(modifier="Boolean")
# Version-safe wrapper
def apply_modifier(obj, modifier_name):
if bpy.app.version >= (4, 0, 0):
with bpy.context.temp_override(object=obj, active_object=obj):
bpy.ops.object.modifier_apply(modifier=modifier_name)
else:
override = {"object": obj, "active_object": obj}
bpy.ops.object.modifier_apply(override, modifier=modifier_name)
# Blender 3.x: LEGACY (BROKEN in 4.0+)
node_group.inputs.new("NodeSocketFloat", "Width")
node_group.outputs.new("NodeSocketGeometry", "Geometry")
# Blender 4.0+: interface API (REQUIRED)
node_group.interface.new_socket(
name="Width", in_out='INPUT', socket_type='NodeSocketFloat'
)
node_group.interface.new_socket(
name="Geometry", in_out='OUTPUT', socket_type='NodeSocketGeometry'
)
# Blender 3.x: 'BLENDER_EEVEE'
# Blender 4.2–4.x: 'BLENDER_EEVEE_NEXT'
# Blender 5.0+: 'BLENDER_EEVEE' (changed back)
import bpy
def get_eevee_identifier():
if bpy.app.version >= (5, 0, 0):
return 'BLENDER_EEVEE'
elif bpy.app.version >= (4, 2, 0):
return 'BLENDER_EEVEE_NEXT'
else:
return 'BLENDER_EEVEE'
scene = bpy.context.scene
scene.render.engine = get_eevee_identifier()
# Blender 3.x / 4.0 / 4.1: bl_info dict in __init__.py
bl_info = {
"name": "My Addon",
"blender": (4, 0, 0),
"category": "Object",
"version": (1, 0, 0),
"description": "My addon description",
}
# Blender 4.2+: blender_manifest.toml (REQUIRED for extensions)
# File: blender_manifest.toml
# schema_version = "1.0.0"
# id = "my_addon"
# version = "1.0.0"
# name = "My Addon"
# tagline = "Short description up to 64 chars"
# maintainer = "Dev Name <[email protected]>"
# type = "add-on"
# blender_version_min = "4.2.0"
# Blender 3.x: bgl module (BROKEN in 5.0)
import bgl
bgl.glEnable(bgl.GL_BLEND)
bgl.glLineWidth(2)
shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR')
# Blender 4.0+: gpu module (REQUIRED for 5.0+)
import gpu
gpu.state.blend_set('ALPHA')
gpu.state.line_width_set(2.0)
shader = gpu.shader.from_builtin('POLYLINE_UNIFORM_COLOR')
# ALWAYS restore gpu state at end of draw callbacks
gpu.state.blend_set('NONE')
gpu.state.line_width_set(1.0)
# Blender 3.x / 4.x: scene.node_tree
scene = bpy.context.scene
scene.use_nodes = True
comp_tree = scene.node_tree
# Blender 5.0+: compositing_node_group
scene = bpy.context.scene
comp_tree = bpy.data.node_groups.new("MyComp", 'CompositorNodeTree')
scene.compositing_node_group = comp_tree
# Blender 3.x / 4.0–4.3: Legacy action.fcurves
action = bpy.data.actions.new("MyAction")
fcurve = action.fcurves.new(data_path="location", index=0)
# Blender 4.4+: Slotted Actions (legacy removed in 5.0)
action = bpy.data.actions.new("MyAction")
slot = action.slots.new()
layer = action.layers.new(name="Layer")
strip = layer.strips.new(type='KEYFRAME')
channelbag = strip.channelbags.new(slot=slot)
fcurve = channelbag.fcurves.new(data_path="location", index=0)
context.temp_override()mesh.edges[i].bevel_weight with mesh.attributes.get("bevel_weight_edge")mesh.edges[i].crease with mesh.attributes.get("crease_edge")obj.face_maps with integer face attributesbone.layers[i] with bone.collectionspose.bone_groups with bone collections + colorsNodeTree.inputs/outputs.new() with NodeTree.interface.new_socket()Subsurface → Subsurface Weight, etc.)3D_UNIFORM_COLOR with POLYLINE_UNIFORM_COLORMesh.calc_normals() (removed, now auto-calculated)bpy.ops.wm.obj_import/exportfilename params, use filepath insteadanim_utils.bake_action() to use BakeOptions dataclassmesh.use_auto_smooth and mesh.auto_smooth_anglemesh.corner_normals for normal accessCUBEMAP→SPHERE, PLANAR→PLANE, GRID→VOLUMEmat.cycles.displacement_method to mat.displacement_methodforeach_set() calls (now raises TypeError)SUBSAMPLING_3x3 → BOXblender_manifest.toml for extension systemBLENDER_EEVEE → BLENDER_EEVEE_NEXTscene.cycles.motion_blur_position to scene.render.motion_blur_positionscene.eevee.use_motion_blur to scene.render.use_motion_blurblend_method with surface_render_methodobject.load_reference_image with object.empty_image_addwidth→mask_width, height→mask_heightbpy.types.AttributeGroup usage with type-specific classessocket_idname propertyPointerPropertysuper().__init__(*args, **kwargs) to ALL Blender type subclassesbpy.types.Sequence references to bpy.types.Strippaint.brush usage (now read-only property)pos attribute uses F32 FLOAT for GPU polyline drawingimport bgl — replace with gpu modulescene['cycles'] dict access with attribute accessscene.node_tree with scene.compositing_node_groupbrush.sculpt_tool with brush.sculpt_brush_typeaction.fcurves with Slotted Actions channelbag APIend_frame with lengthBLENDER_EEVEE_NEXT back to BLENDER_EEVEEanimsys_refactor, etc.)Image.bindcode with gpu.texture.from_image()gpu.types.GPUShader() constructor with gpu.shader.create_from_info()sculpt.sample_color with paint.sample_colorframe_final_duration → duration, frame_final_start → left_handle, etc.bpy.app.version, bpy.app.version_string, bpy.app.version_cycleWhat SKILL.md sets; muted values are Claude Code's defaults
73 skills in this plugin
/aec-agents-workflow-orchestratorUse when a task spans multiple AEC technologies (Blender, IfcOpenShell, Bonsai, Sverchok) and you need to decide which tool handles which step, or when orchestrating multi-step BIM pipelines such as IFC creation to visualization to authoring. Prevents the common mistake of mixing IfcStore.get_file() with ifcopenshell.open() in the same context, or calling Bonsai operators outside a Bonsai-loaded session. Provides decision trees for technology selection, workflow sequencing, and bridge patterns between tools. Keywords: cross-technology, workflow orchestration, BIM pipeline, technology selection, Blender IfcOpenShell Bonsai integration, multi-step AEC, bridge pattern, which tool should I use, combine Blender and IFC, multi-tool workflow, how to connect tools.
/aec-core-bim-workflowsUse when implementing end-to-end BIM workflows that combine IfcOpenShell, Bonsai, and Blender -- such as IFC creation from scratch, model enrichment, validation pipelines, geometry extraction, or batch processing of building models. Prevents the common mistake of skipping unit and context setup before creating geometry, or directly modifying IFC attributes instead of using ifcopenshell.api.run(). Covers property set management across tools, spatial hierarchy patterns, and version compatibility for IFC2X3/IFC4/IFC4X3. Keywords: BIM workflow, IFC creation, model validation, property extraction, batch processing, spatial hierarchy, cross-technology, IfcOpenShell Bonsai Blender, pset management, how to create IFC model, step by step BIM, get properties from IFC.
Other plugins' skills for the same job
npx claudepluginhub lagzgabrielmuller-dot/kit-ingenieria-3d --plugin blender-bim-sverchok