Blender Agents Version Migratorのロゴ

Blender Agents Version Migrator

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

概要

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

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

  • どのLLMでも利用可能

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

  • 3個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキル「Blender Agents Version Migrator」を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/agents/blender-agents-version-migrator
  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/agents/blender-agents-version-migrator .claude/skills/blender-agents-version-migrator
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

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

同梱ファイル

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

よくある質問

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

TypingMindでBlender Agents Version Migratorを使うメリットは何ですか?

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

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

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

Blender Agents Version Migratorを使えるAIモデルはどれですか?

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

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

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

AIスキル「Blender Agents Version Migrator」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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