Blender Agents Version Migrator logo

Blender Agents Version Migrator

Organization
Impertio-Studio
blender-agents-version-migrator

Use when migrating, porting, or upgrading Blender Python scripts and addons across major versions (3.x to 4.x to 5.x). Provides a systematic migration process covering API renames, removed functions, changed parameters, extension system migration, BGL to GPU module conversion, and bone collection migration. Prevents incomplete migrations that compile but fail at runtime. Keywords: migration, porting, upgrade, version, 3.x to 4.x, 4.x to 5.x, API rename, bgl to gpu, extension migration, bl_info to manifest, bone collection, script stopped working after update, upgrade addon to new Blender.

Overview

PublisherImpertio-Studio
RepositoryBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Skill nameblender-agents-version-migrator
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 Agents Version Migrator 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/agents/blender-agents-version-migrator
  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/agents/blender-agents-version-migrator .claude/skills/blender-agents-version-migrator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Blender Agents Version Migrator 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 Agents Version Migrator 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 Agents Version Migrator 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 Agent: Version Migrator

Systematic migration process for Blender Python code across major versions. This agent skill activates when migrating, porting, updating, or upgrading Blender Python scripts or addons between versions 3.x, 4.x, and 5.x.

Dependencies:


1. Quick Reference: Migration Paths

Supported Migration Paths

FromToComplexityKey Changes
3.x4.0HIGHContext overrides, mesh attributes, node interface, bone collections
4.04.1MEDIUMAuto-smooth removal, light probe renames, displacement method move
4.14.2MEDIUMExtension manifest, EEVEE rename, static IDProperties
4.24.3HIGHGrease Pencil rewrite, AttributeGroup split, EEVEE property removal
4.34.4MEDIUMsuper().init required, Sequence→Strip, Slotted Actions
4.44.5LOWMinor deprecations only
4.x5.0HIGHBGL removal, compositor change, slotted actions mandatory
5.05.1LOWPython 3.13, VSE property renames (deprecated)
3.x5.xCRITICALALL of the above — execute sequentially

Migration Execution Order

For a 3.x → 5.x migration, ALWAYS apply changes in this exact order:

  1. 3.x → 4.0 changes
  2. 4.0 → 4.1 changes
  3. 4.1 → 4.2 changes
  4. 4.2 → 4.3 changes
  5. 4.3 → 4.4 changes
  6. 4.4 → 5.0 changes
  7. 5.0 → 5.1 changes

NEVER skip intermediate versions. Each version removes APIs deprecated in prior versions.


2. Migration Agent Process

When migrating Blender Python code, follow these steps in order:

Step 1: Identify Source and Target Versions

python
# Determine current version compatibility from code signals
# Check for these indicators:
# - bl_info dict → 3.x / 4.0 / 4.1 addon
# - blender_manifest.toml → 4.2+ extension
# - import bgl → pre-5.0 code
# - context override dicts on bpy.ops → pre-4.0 code
# - mesh.use_auto_smooth → pre-4.1 code
# - NodeTree.inputs.new() → pre-4.0 code

Step 2: Scan for Affected APIs

Search the codebase for ALL patterns listed in the Find-and-Replace Tables (Section 3). Mark each occurrence with the version transition that affects it.

Step 3: Apply Changes Per Version Transition

Apply changes from the relevant migration checklists below. Process ONE version transition at a time.

Step 4: Update Metadata

  • Replace bl_info with blender_manifest.toml if targeting 4.2+
  • Update minimum version requirements
  • Update any version checks in the code

Step 5: Validate

  • Search for ANY remaining references to removed APIs
  • Verify all import statements reference available modules
  • Check that gpu.state is restored at end of draw callbacks
  • Confirm super().__init__(*args, **kwargs) in all Blender type subclasses (4.4+)

3. Find-and-Replace Tables

3.x → 4.0 Replacements

FindReplace WithCategory
bpy.ops.*.call(override_dict, (dict as first arg)with bpy.context.temp_override(**kwargs):Context
mesh.edges[i].bevel_weightmesh.attributes.get("bevel_weight_edge").data[i].valueMesh
mesh.edges[i].creasemesh.attributes.get("crease_edge").data[i].valueMesh
obj.face_mapsInteger face attributesMesh
mesh.calc_normals()Remove call (auto-calculated)Mesh
bone.layers[i]bone.collectionsArmature
pose.bone_groupsBone collections with colorsArmature
NodeTree.inputs.new(type, name)NodeTree.interface.new_socket(name=name, in_out='INPUT', socket_type=type)Nodes
NodeTree.outputs.new(type, name)NodeTree.interface.new_socket(name=name, in_out='OUTPUT', socket_type=type)Nodes
node.inputs["Subsurface"]node.inputs["Subsurface Weight"]Shader
node.inputs["Specular"]node.inputs["Specular IOR Level"]Shader
node.inputs["Transmission"]node.inputs["Transmission Weight"]Shader
gpu.shader.from_builtin('3D_UNIFORM_COLOR')gpu.shader.from_builtin('POLYLINE_UNIFORM_COLOR')GPU
gpu.shader.from_builtin('3D_FLAT_COLOR')gpu.shader.from_builtin('POLYLINE_FLAT_COLOR')GPU
bpy.ops.import_scene.obj(bpy.ops.wm.obj_import(IO
bpy.ops.export_scene.obj(bpy.ops.wm.obj_export(IO
filename= (in IO operators)filepath=IO

4.0 → 4.1 Replacements

FindReplace WithCategory
mesh.use_auto_smooth = TrueRemove (always active)Mesh
mesh.auto_smooth_angleUse "Smooth by Angle" modifierMesh
mesh.calc_normals_split()Remove (use mesh.corner_normals)Mesh
mesh.create_normals_split()RemoveMesh
mesh.free_normals_split()RemoveMesh
probe.type == 'CUBEMAP'probe.type == 'SPHERE'Light Probe
probe.type == 'PLANAR'probe.type == 'PLANE'Light Probe
probe.type == 'GRID'probe.type == 'VOLUME'Light Probe
mat.cycles.displacement_methodmat.displacement_methodMaterial
SUBSAMPLING_3x3BOXSequencer

4.1 → 4.2 Replacements

FindReplace WithCategory
bl_info = { (if targeting 4.2+)blender_manifest.toml fileExtension
BLENDER_EEVEE (render engine)BLENDER_EEVEE_NEXTRender
scene.cycles.motion_blur_positionscene.render.motion_blur_positionRender
scene.eevee.use_motion_blurscene.render.use_motion_blurRender
object.load_reference_imageobject.empty_image_addObject

4.2 → 4.3 Replacements

FindReplace WithCategory
bpy.types.AttributeGroupAttributeGroupMesh / AttributeGroupPointCloud / etc.Attributes
scene.eevee.use_ssrRemove (engine-internal)EEVEE
scene.eevee.use_bloomRemove (engine-internal)EEVEE
scene.eevee.* (40+ legacy props)Remove or check 4.3 release notesEEVEE
ALL Grease Pencil API callsComplete rewrite requiredGrease Pencil

4.3 → 4.4 Replacements

FindReplace WithCategory
class MyOp(bpy.types.Operator): (no super init)Add super().__init__(*args, **kwargs)Classes
bpy.types.Sequencebpy.types.StripVSE
action.fcurves.new( (for new code)Slotted Actions APIAnimation
paint.brush (write access)Read-only; use brush asset systemPaint

4.x → 5.0 Replacements

FindReplace WithCategory
import bglimport gpuDrawing
bgl.glEnable(bgl.GL_BLEND)gpu.state.blend_set('ALPHA')Drawing
bgl.glDisable(bgl.GL_BLEND)gpu.state.blend_set('NONE')Drawing
bgl.glLineWidth(w)gpu.state.line_width_set(w)Drawing
bgl.glEnable(bgl.GL_DEPTH_TEST)gpu.state.depth_test_set('LESS_EQUAL')Drawing
bgl.glDisable(bgl.GL_DEPTH_TEST)gpu.state.depth_test_set('NONE')Drawing
bgl.glPointSize(s)gpu.state.point_size_set(s)Drawing
bgl.glDepthMask(GL_TRUE)gpu.state.depth_mask_set(True)Drawing
image.gl_load() / image.bindcodegpu.texture.from_image(image)Drawing
gpu.types.GPUShader()gpu.shader.create_from_info()Drawing
scene['cycles']scene.cycles.property_name (attribute access)Properties
scene.node_tree (compositor)scene.compositing_node_groupCompositor
scene.use_nodes (compositor)Remove (always active)Compositor
brush.sculpt_toolbrush.sculpt_brush_typeSculpt
strip.end_frame (VSE)strip.lengthVSE
action.fcurves (legacy)Slotted Actions channelbag APIAnimation
BLENDER_EEVEE_NEXTBLENDER_EEVEE (reverted)Render

5.0 → 5.1 Replacements

FindReplace WithCategory
sculpt.sample_colorpaint.sample_colorSculpt
frame_final_durationduration (deprecated, removed in 6.0)VSE
frame_final_startleft_handle (deprecated, removed in 6.0)VSE
frame_final_endright_handle (deprecated, removed in 6.0)VSE

4. Decision Tree: Compatibility Shims vs Clean Migration

MIGRATION STRATEGY DECISION
│
├── Target SINGLE Blender version?
│   └── YES → Clean migration: remove ALL legacy code, use target API only
│
├── Target VERSION RANGE (e.g., 3.x + 4.x)?
│   ├── Range spans 3.x and 4.0+ ?
│   │   └── YES → Use version-safe wrappers with bpy.app.version checks
│   ├── Range spans 4.x and 5.0+ ?
│   │   └── YES → Use version-safe wrappers; NEVER import bgl at module level
│   └── Range within single major (e.g., 4.0–4.4)?
│       └── Use hasattr() feature detection for minor version differences
│
└── Target LATEST only (drop legacy)?
    └── Clean migration: target version API only, no compatibility code

When to Use Compatibility Shims

ALWAYS use compatibility shims when:

  • The addon targets 2+ major Blender versions simultaneously
  • The addon is distributed to users on different Blender versions

NEVER use compatibility shims when:

  • The migration targets a single Blender version
  • The code is an internal tool pinned to one Blender version

Compatibility Module Pattern

python
# compat.py: Version-safe compatibility layer
import bpy

BLENDER_4 = bpy.app.version >= (4, 0, 0)
BLENDER_41 = bpy.app.version >= (4, 1, 0)
BLENDER_42 = bpy.app.version >= (4, 2, 0)
BLENDER_43 = bpy.app.version >= (4, 3, 0)
BLENDER_44 = bpy.app.version >= (4, 4, 0)
BLENDER_5 = bpy.app.version >= (5, 0, 0)
BLENDER_51 = bpy.app.version >= (5, 1, 0)

def apply_modifier(obj, modifier_name):
    if BLENDER_4:
        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)

Conditional Import Pattern for BGL → gpu

python
# NEVER import bgl at module level in multi-version addons
import gpu

# For addons targeting 3.x–4.x (before 5.0 removal):
try:
    import bgl
    HAS_BGL = True
except ImportError:
    HAS_BGL = False  # Blender 5.0+

# ALWAYS use gpu module for new code regardless of version

5. EEVEE Identifier Migration

The EEVEE render engine identifier changed across versions. ALWAYS use this lookup:

Blender VersionEEVEE Identifier
3.xBLENDER_EEVEE
4.0 – 4.1BLENDER_EEVEE
4.2 – 4.xBLENDER_EEVEE_NEXT
5.0+BLENDER_EEVEE
python
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'

6. Extension System Migration (4.2+)

When migrating from legacy addon to extension system:

  1. Create blender_manifest.toml in addon root
  2. Remove bl_info dict from __init__.py
  3. Set blender_version_min = "4.2.0" (or target minimum)
  4. Add id matching the package directory name
  5. Add tagline (max 64 chars, no trailing punctuation)
  6. Add type = "add-on" or type = "theme"
  7. Add network permissions if addon accesses internet: [permissions] → network = "Reason for access"
  8. Add license = ["SPDX:GPL-3.0-or-later"] (or appropriate SPDX)

7. Critical Migration Rules

  1. NEVER use import bgl in code targeting Blender 5.0+ — the module is REMOVED.
  2. ALWAYS restore gpu.state to defaults at the end of every draw callback.
  3. NEVER pass a dict as the first argument to bpy.ops in Blender 4.0+ — use context.temp_override().
  4. ALWAYS add super().__init__(*args, **kwargs) to Blender type subclasses in 4.4+.
  5. NEVER suppress DeprecationWarning — it hides migration signals.
  6. NEVER use try/except AttributeError as a version check — use bpy.app.version or hasattr().
  7. ALWAYS set POLYLINE_UNIFORM_COLOR shader uniforms: viewportSize and lineWidth.
  8. ALWAYS migrate Grease Pencil code completely when targeting 4.3+ — partial migration breaks.
  9. NEVER assign embedded IDs to PointerProperty in 4.3+.
  10. ALWAYS check the deprecation timeline in blender-errors-version before using any API.

8. Reference Links

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 Agents Version Migrator AI skill do?

Use when migrating, porting, or upgrading Blender Python scripts and addons across major versions (3.x to 4.x to 5.x). Provides a systematic migration process covering API renames, removed functions, changed parameters, extension system migration, BGL to GPU module conversion, and bone collection migration. Prevents incomplete migrations that compile but fail at runtime. Keywords: migration, porting, upgrade, version, 3.x to 4.x, 4.x to 5.x, API rename, bgl to gpu, extension migration, bl_info to manifest, bone collection, script stopped working after update, upgrade addon to new Blender.

Why use Blender Agents Version Migrator on TypingMind?

Because you install it once and use it with any model. Blender Agents Version Migrator 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 Agents Version Migrator 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/agents/blender-agents-version-migrator. 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 Agents Version Migrator?

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 Agents Version Migrator?

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

Is the Blender Agents Version Migrator 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 👇