Logo di Blender Core Versions

Blender Core Versions

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

Panoramica

Pubblicato daImpertio-Studio
RepositoryBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Nome della skillblender-core-versions
Stelle
44
Fork
5
File inclusi
3
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Impertio-Studio su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Blender Core Versions in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/core/blender-core-versions
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'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/core/blender-core-versions .claude/skills/blender-core-versions
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Blender Core Versions in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Blender Core Versions non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Blender Core Versions non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Blender Core Versions su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Blender Core Versions è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Blender Core Versions in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/core/blender-core-versions. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Blender Core Versions?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Blender Core Versions?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Blender Core Versions: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Blender Core Versions è gratuita?

Sì. È pubblicata su GitHub da Impertio-Studio con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇