Logo vun Blender Agents Version Migrator

Blender Agents Version Migrator

Organisatioun
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.

Iwwersiicht

EditeurImpertio-Studio
RepositoryBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Skill-Nummblender-agents-version-migrator
Stären
44
Forks
5
Matgeliwwert Fichieren
3
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum Impertio-Studio op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Blender Agents Version Migrator an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/agents/blender-agents-version-migrator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Blender Agents Version Migrator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Blender Agents Version Migrator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Blender Agents Version Migrator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Blender Agents Version Migrator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Blender Agents Version Migrator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Blender Agents Version Migrator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/agents/blender-agents-version-migrator an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Blender Agents Version Migrator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Blender Agents Version Migrator benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Blender Agents Version Migrator domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Blender Agents Version Migrator gratis?

Jo. De Skill gëtt vum Impertio-Studio ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇