Command Palette

Search for a command to run...

Назад к скиллам
скилл № 22078

game-blender

Takes 3D game assets from Blender 5.x into a web client, Godot or Unity: headless runs with bpy, glTF 2.0 and FBX export settings, modifiers, shape keys and…

БесплатноБез исполняемых скриптов
fcsouzaот fcsouza★ 29 звёзд на GitHub

Установить game-blender в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Game Blender

Blender is a content tool, not a runtime. It makes the files the game loads: glTF 2.0 for the browser client and Godot, FBX for Unity. This skill covers the Blender side of that file boundary. The loading side belongs to game-client, game-godot and game-unity.

Version checked against

  • Blender 5.3 is the current stable release (2026-11-10). 5.2 is the LTS, supported until July 2028; 4.5 LTS is supported until July 2027 (Blender release notes index, checked 2026-11-14). The API reference and manual pages cited here are the 5.3 editions.
  • Python inside Blender is 3.13 since 5.1.
  • Write for 5.x. Code from 4.x tutorials and from an assistant's training data breaks on 5.x in the ways listed under "5.x changes" below.
  • Godot's own .blend import works with Blender 3.0 or later; Godot recommends 3.5 or later and an official build from blender.org.

When Blender fits

  • 3D props, characters, level pieces and their animations for a three.js or React Three Fiber client, a Godot game or a Unity game.
  • Baking high-poly detail and lighting into textures for real-time use.
  • A build step that exports or checks assets in CI with no person at the screen.

It does not fit a 2D game whose art is sprite atlases, unless you render the sprites from 3D (this skill's rule).

Run Blender headless

blender -b -X -Y --python-exit-code 1 art/crate.blend -P tools/export_glb.py -- out/crate.glb
  • -b runs without the UI, -X skips the user's startup file, -Y stops scripts stored in the .blend from running, -P runs the script, and arguments after -- reach it through sys.argv.
  • A .blend can carry Python: registered text blocks and driver expressions run when auto-execution is allowed, and the Preferences still apply in background mode unless -Y overrides them (manual, Scripting & Security). Never pass -y, never turn on Auto Run Python Scripts, and treat a third-party .blend as code, in CI export scripts and MCP _for_cli tools alike.
  • Arguments run in the order given, so the .blend comes before -P.
  • --python-exit-code sets the exit code used when the script raises; pass it, since CI cannot otherwise rely on a non-zero exit (this skill's inference). An operator reports finished or cancelled as its return value, so check it and that the file exists, and raise yourself.
  • Prefer the data API over bpy.ops in background scripts: operators read context (mode, selection, active object) and fail their poll when it is wrong.

references/headless-and-bpy.md has the flag table, an export script that fails CI correctly, and the bpy rules for scripts without a UI.

5.x changes agents get wrong

Old (4.x and earlier) Now (5.x)
action.fcurves, action.groups F-curves live on a slot's channelbag: bpy_extras.anim_utils.action_ensure_channelbag_for_slot(action, slot)
scene.node_tree for the compositor scene.compositor_effects; the 5.0 replacement scene.compositing_node_group is itself deprecated, removal planned for 6.0
mat.use_nodes = True to get nodes New materials already have a node tree; use_nodes is a deprecated no-op
Combine RGB, Separate RGB nodes Combine Color, Separate Color, Mode RGB
BLENDER_EEVEE_NEXT BLENDER_EEVEE
bpy.ops.import_scene.fbx bpy.ops.wm.fbx_import (C++ importer). Export is still bpy.ops.export_scene.fbx
Collada (.dae) export Removed in 5.0
Names capped at 63 bytes 255 bytes; Blender 4.5 truncates them

Export procedure

  1. Pick the format per target. glTF Binary (.glb) for game-client and game-godot; FBX for game-unity.
  2. Check the scene against the pre-export checklist below.
  3. Set the exporter options explicitly, never by relying on defaults:
    • glTF: export_format='GLB', export_yup=True, export_apply on unless the mesh has shape keys, export_extras=True if the game reads custom properties, export_def_bones=True for Godot meshes with shape keys.
    • FBX for Unity: axis_forward='-Z', axis_up='Y', global_scale=1.0, apply_unit_scale=True (the Blender defaults; Unity's page does not name them, so this is this skill's inference: import-test in Unity), use_mesh_modifiers chosen per asset, add_leaf_bones=False unless the rig will be edited after reimport.
    • Web compression (Draco, meshopt, KTX2, WebP) only when the client sets the matching GLTFLoader decoder.
  4. Export from a script with the command above, or from a Collection Exporter that stores the settings on the collection.
  5. Verify: the export returned {'FINISHED'}, the file exists, and it imports correctly in the real target.

The defaults, and the cases where the manual and the API disagree, are in references/export-gltf-fbx.md.

Rules that cost the most when missed:

  • glTF exports only actions that are active on an object or stashed on an NLA track. Stash every clip.
  • Only Principled BSDF and unlit materials export to glTF. Data images use Non-Color.
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/agent-tooling.md
  • references/baking-and-textures.md
  • references/export-gltf-fbx.md
  • references/headless-and-bpy.md
  • references/lod-collision-naming.md
  • references/qa-checklist.md
  • references/sources.md

FAQ

Что делает скилл game-blender?

Takes 3D game assets from Blender 5.x into a web client, Godot or Unity: headless runs with bpy, glTF 2.0 and FBX export settings, modifiers, shape keys and animation clips, PBR materials and packed ORM textures, baking, LODs, collision meshes, engine naming rules, a pre-export checklist, and the Blender MCP servers. Use when a model, prop, character or level piece made in Blender has to reach the game: exporting .glb or .fbx, a script or CI job that runs Blender without the UI, an asset that arrives in the engine with the wrong scale, facing, materials, missing animations or no collision, baking normal or AO maps, or bpy code written for Blender 4.x that fails on 5.x.

Как установить скилл game-blender?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл game-blender запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить game-blender с