Blender Core Versions logo

Blender Core Versions

Organization
Impertio-Studio
blender-core-versions

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.

Overview

PublisherImpertio-Studio
RepositoryBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Skill nameblender-core-versions
Stars
44
Forks
5
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Impertio-Studio on GitHub. Read the source before you install it.

Installation

Install the Blender Core Versions AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/core/blender-core-versions
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package.git /tmp/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
mkdir -p .claude/skills
cp -r /tmp/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/skills/blender/core/blender-core-versions .claude/skills/blender-core-versions
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Blender Core Versions in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Blender Core Versions on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Blender Core Versions is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Blender Core Versions: Python API Version Matrix

1. Quick Reference

Version Detection

python
# 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.

Python Version Matrix

BlenderPythonVFX Platform
3.x3.102023
4.03.102023
4.13.112024
4.2 LTS3.112024
4.33.112024
4.43.112024
4.5 LTS3.112024
5.03.112025
5.13.132026

Critical Breaking Changes Summary

ChangeRemoved InMigration
Context override dicts on bpy.ops4.0context.temp_override()
MeshEdge.bevel_weight / .crease4.0mesh.attributes.get("bevel_weight_edge")
obj.face_maps4.0Integer face attributes
bone.layers[i] / pose.bone_groups4.0bone.collections
NodeTree.inputs/outputs.new()4.0NodeTree.interface.new_socket()
Principled BSDF socket names4.0Renamed: Subsurface Weight, Specular IOR Level, etc.
3D_UNIFORM_COLOR shader name4.0POLYLINE_UNIFORM_COLOR
Python OBJ/PLY importers4.0bpy.ops.wm.obj_import/export
Mesh.use_auto_smooth4.1Mesh.corner_normals + Smooth by Angle modifier
Light probe CUBEMAP/PLANAR/GRID4.1SPHERE / PLANE / VOLUME
mat.cycles.displacement_method4.1mat.displacement_method
blender_manifest.toml required4.2Replace bl_info dict with TOML manifest
EEVEE → BLENDER_EEVEE_NEXT4.2Check identifier string
bpy.types.AttributeGroup4.3AttributeGroupMesh, AttributeGroupPointCloud, etc.
Grease Pencil API rewrite4.3Complete API rewrite; see migration guide
EEVEE legacy properties4.340+ properties removed
Subclass __init__ must call super()4.4Forward *args, **kwargs to parent
bpy.types.Sequence → bpy.types.Strip4.4Rename all Sequence references
Slotted Actions system4.4action.layers[0].strips[0].channelbag()
bgl module5.0gpu module (MANDATORY)
scene['cycles'] dict access5.0Attribute access on RNA properties
scene.node_tree (compositor)5.0scene.compositing_node_group
brush.sculpt_tool5.0brush.sculpt_brush_type
action.fcurves legacy API5.0Slotted Actions channelbag API
VSE end_frame5.0length property
VSE strip time property renames5.1frame_final_duration → duration, etc. (removal in 6.0)
Python 3.135.1Check stdlib changes

2. Essential Patterns

Version-Safe Conditionals

ALWAYS use bpy.app.version tuple comparison. NEVER parse bpy.app.version_string.

python
# 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

Feature Detection Pattern

ALWAYS prefer hasattr() checks over version comparisons when testing for a specific API.

python
# 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

Context Override Pattern

python
# 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)

Node Group Interface Pattern

python
# 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'
)

EEVEE Identifier Pattern

python
# 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()

Extension Manifest Pattern

python
# 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@example.com>"
# type = "add-on"
# blender_version_min = "4.2.0"

GPU Drawing Pattern (BGL → gpu Migration)

python
# 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)

Compositor Access Pattern

python
# 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

Slotted Actions Pattern (4.4+)

python
# 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)

3. Common Operations: Migration Checklists

3.x → 4.0 Migration Checklist

  • Replace ALL context override dicts with context.temp_override()
  • Replace mesh.edges[i].bevel_weight with mesh.attributes.get("bevel_weight_edge")
  • Replace mesh.edges[i].crease with mesh.attributes.get("crease_edge")
  • Replace obj.face_maps with integer face attributes
  • Replace bone.layers[i] with bone.collections
  • Replace pose.bone_groups with bone collections + colors
  • Replace NodeTree.inputs/outputs.new() with NodeTree.interface.new_socket()
  • Update Principled BSDF socket names (Subsurface → Subsurface Weight, etc.)
  • Replace 3D_UNIFORM_COLOR with POLYLINE_UNIFORM_COLOR
  • Replace Mesh.calc_normals() (removed, now auto-calculated)
  • Replace Python OBJ/PLY IO with bpy.ops.wm.obj_import/export
  • Remove filename params, use filepath instead
  • Update anim_utils.bake_action() to use BakeOptions dataclass

4.0 → 4.1 Migration Checklist

  • Remove mesh.use_auto_smooth and mesh.auto_smooth_angle
  • Use mesh.corner_normals for normal access
  • Use "Smooth by Angle" modifier for angle-based smoothing
  • Rename light probe types: CUBEMAP→SPHERE, PLANAR→PLANE, GRID→VOLUME
  • Move mat.cycles.displacement_method to mat.displacement_method
  • Add type checking for foreach_set() calls (now raises TypeError)
  • Rename sequencer filter SUBSAMPLING_3x3 → BOX
  • Use socket identifiers instead of indices for dynamic sockets

4.1 → 4.2 Migration Checklist

  • Create blender_manifest.toml for extension system
  • Handle statically typed IDProperties (no implicit type changes)
  • Update EEVEE identifier: BLENDER_EEVEE → BLENDER_EEVEE_NEXT
  • Move scene.cycles.motion_blur_position to scene.render.motion_blur_position
  • Move scene.eevee.use_motion_blur to scene.render.use_motion_blur
  • Replace blend_method with surface_render_method
  • Replace object.load_reference_image with object.empty_image_add
  • Update compositor mask node properties: width→mask_width, height→mask_height

4.2 → 4.3 Migration Checklist

  • Replace bpy.types.AttributeGroup usage with type-specific classes
  • Migrate ALL Grease Pencil code to new API
  • Remove references to EEVEE legacy properties (contact shadows, SSR, bloom, etc.)
  • Update reroute node handling to use socket_idname property
  • Do NOT assign embedded IDs to PointerProperty

4.3 → 4.4 Migration Checklist

  • Add super().__init__(*args, **kwargs) to ALL Blender type subclasses
  • Rename bpy.types.Sequence references to bpy.types.Strip
  • Adopt Slotted Actions API for new animation code
  • Update paint.brush usage (now read-only property)
  • Ensure pos attribute uses F32 FLOAT for GPU polyline drawing

4.x → 5.0 Migration Checklist

  • Remove ALL import bgl — replace with gpu module
  • Replace scene['cycles'] dict access with attribute access
  • Replace scene.node_tree with scene.compositing_node_group
  • Replace brush.sculpt_tool with brush.sculpt_brush_type
  • Replace legacy action.fcurves with Slotted Actions channelbag API
  • Replace VSE end_frame with length
  • Update EEVEE identifier from BLENDER_EEVEE_NEXT back to BLENDER_EEVEE
  • Remove usage of bundled private modules (animsys_refactor, etc.)
  • Replace Image.bindcode with gpu.texture.from_image()
  • Replace gpu.types.GPUShader() constructor with gpu.shader.create_from_info()

5.0 → 5.1 Migration Checklist

  • Replace sculpt.sample_color with paint.sample_color
  • Update to Python 3.13 — check stdlib compatibility
  • Prepare for VSE time property renames (deprecated, removed in 6.0): frame_final_duration → duration, frame_final_start → left_handle, etc.

4. Reference Links

  • references/methods.md — Complete version detection API: bpy.app.version, bpy.app.version_string, bpy.app.version_cycle
  • references/examples.md — Migration code examples for EACH version transition (3.x→4.0, 4.0→4.1, 4.1→4.2, 4.2→4.3, 4.3→4.4, 4.4→5.0, 5.0→5.1)
  • references/anti-patterns.md — Common version migration mistakes with explanations

Official Documentation

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Blender Core Versions AI skill do?

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.

Why use Blender Core Versions on TypingMind?

Because you install it once and use it with any model. Blender Core Versions is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Blender Core Versions in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/core/blender-core-versions. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Blender Core Versions?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Blender Core Versions?

As many as you like. As long as a model supports skills, you can use Blender Core Versions with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Blender Core Versions AI skill free?

Yes. It is published on GitHub by Impertio-Studio under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇