Blender Core Versionsのロゴ

Blender Core Versions

組織
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.

概要

公開者Impertio-Studio
リポジトリBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
スキル名blender-core-versions
スター
44
フォーク
5
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Impertio-StudioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Blender Core Versions」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/core/blender-core-versions
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBlender Core Versionsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBlender Core Versionsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Blender Core Versionsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでBlender Core Versionsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Blender Core Versionsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBlender Core Versionsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/blender/core/blender-core-versionsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Blender Core Versionsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Blender Core Versionsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBlender Core Versionsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Blender Core Versions」は無料ですか?

はい。Impertio-StudioがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇