Logo di Live Blender Session

Live Blender Session

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

Panoramica

AutoreTMHSDigital
RepositoryBlender-Developer-Tools
Nome della skilllive-blender-session
Stelle
20
Fork
5
File inclusi
Solo istruzioni
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.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da TMHSDigital su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Live Blender Session 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/TMHSDigital/Blender-Developer-Tools/tree/main/live-session/skills/live-blender-session
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova 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 nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Live Blender Session 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 Live Blender Session 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 Live Blender Session 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à.

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

Domande frequenti

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

Perché usare Live Blender Session su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Live Blender Session è 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 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 Live Blender Session in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/live-session/skills/live-blender-session. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Live Blender Session?

Qualsiasi modello che colleghi in 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 Live Blender Session?

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

La skill IA Live Blender Session è gratuita?

È pubblicata su GitHub da TMHSDigital. Consulta il repository per i termini di licenza. 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, modelli 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.

Vedi tutti

Crea subito la tua area di lavoro IA

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