Logotipo de Blender Agents Version Migrator

Blender Agents Version Migrator

Organización
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.

Descripción general

EditorImpertio-Studio
RepositorioBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Nombre de la habilidadblender-agents-version-migrator
Estrellas
44
Forks
5
Archivos incluidos
3
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 3

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por Impertio-Studio en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Blender Agents Version Migrator en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/agents/blender-agents-version-migrator
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Blender Agents Version Migrator en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Blender Agents Version Migrator automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Blender Agents Version Migrator no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Blender Agents Version Migrator en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Blender Agents Version Migrator está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Blender Agents Version Migrator en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/agents/blender-agents-version-migrator. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Blender Agents Version Migrator?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Blender Agents Version Migrator?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Blender Agents Version Migrator con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Blender Agents Version Migrator?

Sí. Impertio-Studio la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇