Логотип Live Blender Session

Live Blender Session

Спільнота
TMHSDigital
live-blender-session

Work against the user's running Blender through the Blender Lab MCP server (the blender tools): read the scene with the summary, screenshot and docs tools before touching anything, save before any execute_blender_code call that mutates, prototype live, then hand back a script proven with blender --background. Use when the user has Blender open and asks about or wants changes to their current scene, file, selection or viewport, or when the blender MCP tools are available and a task needs real scene data rather than guesses. Needs Blender 5.1+ with the MCP add-on; on 4.5 LTS fall back to headless scripts.

Огляд

ВидавецьTMHSDigital
РепозиторійBlender-Developer-Tools
Назва навичкиlive-blender-session
Зірки
20
Форки
5
Файли в пакеті
Лише інструкції
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: TMHSDigital. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Live Blender Session у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/live-session/skills/live-blender-session
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TMHSDigital/Blender-Developer-Tools.git /tmp/Blender-Developer-Tools
mkdir -p .claude/skills
cp -r /tmp/Blender-Developer-Tools/live-session/skills/live-blender-session .claude/skills/live-blender-session
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Live Blender Session в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Live Blender Session, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Live Blender Session не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Live Blender Session (MCP)

Trigger

Use this skill when:

  • The blender MCP tools are available (get_objects_summary, execute_blender_code, ...) and the user refers to "my scene", "this file", "the selected object", or what is on screen
  • A task needs facts only the open file has: object names, modifier stacks, material slots, units, what the viewport shows
  • The user wants a change made in their open Blender, not a script to run later

Do not use it for work that must be reproducible (CI, batch jobs, anything another person will rerun). That is headless work; see headless-batch-scripting.

What the server is

The plugin blender-live-session registers the official Blender Lab MCP server, pinned to a reviewed commit. It talks to an add-on inside a running Blender (5.1 or newer) over localhost:9876. execute_blender_code runs whatever Python it is given in that session, with no sandbox and no confirmation. Treat it like typing into the user's Python console.

If a tool reports it cannot connect, the add-on is not running: ask the user to start it (Edit > Preferences > Add-ons > Blender MCP, or its auto-start option). Do not retry in a loop.

Order of operations

  1. Read before you write. Start with the tools that only read:

    • get_objects_summary, get_object_detail_summary: names, types, transforms, modifiers, materials
    • get_blendfile_summary_datablocks, ..._path_info, ..._missing_files, ..._of_linked_libraries, ..._usage_guess: what the file is and what it depends on
    • get_screenshot_of_window_as_image, get_screenshot_of_area_as_image, render_viewport_to_path, render_thumbnail_to_path: what the user is looking at
    • search_api_docs, get_python_api_docs, search_manual_docs: the API for the version actually running

    Never assume an object, collection or material name. Read it.

  2. Check the version before choosing an API path. bpy.app.version decides between, for example, .sequences and .strips, or action.fcurves and the slotted-action channelbag (see vse-python, slotted-actions-animation). Branch on the tuple, never on version_string.

  3. Save before mutating. If bpy.data.is_dirty is true or bpy.data.filepath is empty, stop and ask the user to save, or offer to save a copy with bpy.ops.wm.save_as_mainfile(filepath=..., copy=True). A live mutation can only be undone with the user's own Ctrl+Z, and some operations (purges, bpy.data.*.remove) are not undoable at all.

  4. Mutate in small, inspectable steps. One execute_blender_code call per logical change, each returning a result dict that states what changed (names, counts, before/after values). Prefer bpy.data edits over bpy.ops (see prefer-data-over-ops-in-loops); operators in the live session act on whatever the user has selected and in whatever editor has focus.

  5. Show the result. Screenshot or render the viewport after a visible change so the user can judge it.

  6. Hand back a script. Anything worth keeping becomes a standalone script that runs with blender --background file.blend --python fix.py --python-exit-code 1 and asserts its own outcome. The live session found the fix; the headless run proves it.

Returning data from execute_blender_code

Assign a JSON-serialisable dict to result; printed output is not a reliable channel.

python
import bpy

obj = bpy.data.objects.get("Chair")
if obj is None:
    result = {"error": "no object named Chair", "objects": [o.name for o in bpy.data.objects]}
else:
    result = {
        "type": obj.type,
        "modifiers": [(m.name, m.type) for m in obj.modifiers],
        "materials": [s.material.name if s.material else None for s in obj.material_slots],
        "dimensions": tuple(round(v, 4) for v in obj.dimensions),
    }

Return names and numbers, not Blender objects: an Object comes back as its repr, which is useless to reason about.

Live findings are not verification

A behaviour observed in the live session can depend on things a fresh process does not have: the user's preferences and add-ons, the current selection and active object, an evaluated depsgraph that has not been refreshed, or state left over from earlier calls. Before telling the user something works:

  • Re-run it headless with --factory-startup on a saved copy of the file, or
  • Use the *_for_cli variants (execute_blender_code_for_cli, get_blendfile_summary_datablocks_for_cli, ...), which open the file in a separate blender --background process. They use BLENDER_PATH when blender is not on PATH.

Say which one you did. "Worked in the live session" is a prototype result, not a test.

Common AI mistakes

MistakeConsequenceDo instead
Calling execute_blender_code first to "look around" with bpy.opsChanges selection, mode or active object as a side effectUse the summary tools, or read bpy.data without operators
Mutating an unsaved fileNothing to go back to if the change is wrongAsk the user to save, or save a copy first
Looping bpy.ops over many objects liveSlow, and each call acts on the current selectionbpy.data / bmesh / foreach_set (see mesh-editing-and-bmesh)
Assuming the 4.5 API because the pack targets itWrong path on the 5.x the user is runningRead bpy.app.version first
Reporting a live result as proofIt may not reproduce in a clean processProve it headless or with a *_for_cli tool
Leaving the user in Edit Mode or a temp override stateTheir next action behaves unexpectedlyRestore the mode and selection you found

On Blender 4.5 LTS

The MCP add-on needs Blender 5.1 or newer, so a 4.5 LTS user has no live session. Work headless: ask for the .blend path and run blender --background scripts (see headless-batch-scripting), or have the user paste the output of a short read-only script you write for them.

References

Поширені запитання

Що робить навичка ШІ Live Blender Session?

Work against the user's running Blender through the Blender Lab MCP server (the blender tools): read the scene with the summary, screenshot and docs tools before touching anything, save before any execute_blender_code call that mutates, prototype live, then hand back a script proven with blender --background. Use when the user has Blender open and asks about or wants changes to their current scene, file, selection or viewport, or when the blender MCP tools are available and a task needs real scene data rather than guesses. Needs Blender 5.1+ with the MCP add-on; on 4.5 LTS fall back to head...

Навіщо використовувати Live Blender Session у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Live Blender Session — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Live Blender Session у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/live-session/skills/live-blender-session. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Live Blender Session?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Live Blender Session?

Зі скількома забажаєте. У TypingMind ви можете використовувати Live Blender Session із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Live Blender Session?

На GitHub цю навичку публікує TMHSDigital. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇