Logo vun Compositor Nodes

Compositor Nodes

Communautéit
TMHSDigital
compositor-nodes

Build and render through the scene compositor from Python across the 4.5 LTS to 5.x split: scene.use_nodes plus scene.node_tree and a Composite node on 4.5, a CompositorNodeTree node group assigned to scene.compositing_node_group with interface sockets and a Group Output on 5.x, a Render Layers to Glare (Fog Glow) chain, the Glare node's move from enum properties to menu input sockets, and render.use_compositing. Use when the user scripts compositor nodes, adds bloom or glow, hits AttributeError on scene.node_tree in 5.x, sets glare_type or quality and gets AttributeError on 5.x, looks for the removed EEVEE use_bloom toggle, or renders and sees no compositor effect. Targets 5.2 LTS with 4.5 LTS fallback.

Iwwersiicht

EditeurTMHSDigital
RepositoryBlender-Developer-Tools
Skill-Nummcompositor-nodes
Stären
20
Forks
5
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum TMHSDigital op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Compositor Nodes an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/skills/compositor-nodes
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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/skills/compositor-nodes .claude/skills/compositor-nodes
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Compositor Nodes an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Compositor Nodes automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Compositor Nodes net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Compositor Nodes in Python

Trigger

Use this skill when the user:

  • Builds, edits or inspects compositor nodes from a script
  • Mentions scene.node_tree, scene.use_nodes, compositing_node_group, CompositorNodeTree, CompositorNodeGlare, CompositorNodeRLayers, or CompositorNodeComposite
  • Hits AttributeError on scene.node_tree after moving to 5.x
  • Sets glare.glare_type / glare.quality / glare.size on 5.x and gets AttributeError
  • Wants bloom and reaches for scene.eevee.use_bloom (removed in 4.2, absent on 4.5 and 5.x)

High-level shape

python
import bpy

scene = bpy.context.scene

if bpy.app.version >= (5, 0, 0):
    # 5.x: the compositor is a node GROUP assigned to the scene
    tree = bpy.data.node_groups.new("Composite", 'CompositorNodeTree')
    tree.interface.new_socket(name="Image", in_out='INPUT', socket_type='NodeSocketColor')
    tree.interface.new_socket(name="Image", in_out='OUTPUT', socket_type='NodeSocketColor')
    out_node = tree.nodes.new("NodeGroupOutput")
    scene.compositing_node_group = tree
else:
    # 4.5: the scene owns its compositor tree
    scene.use_nodes = True
    tree = scene.node_tree
    tree.nodes.clear()
    out_node = tree.nodes.new("CompositorNodeComposite")

rl = tree.nodes.new("CompositorNodeRLayers")
tree.links.new(rl.outputs["Image"], out_node.inputs["Image"])

Branch on the bpy.app.version tuple, never on bpy.app.version_string (it reads e.g. "4.5.11 LTS"). hasattr(scene, "node_tree") is an equivalent probe: it is True on 4.5 and False on 5.x.

The tree the scene composites

4.5 LTS5.x (5.1, 5.2 LTS)
Where the tree livesscene.node_tree (created by scene.use_nodes = True)a bpy.data.node_groups entry of type 'CompositorNodeTree', assigned to scene.compositing_node_group
scene.node_treepresentAttributeError (removed in 5.0)
scene.use_nodesturns the compositor on and creates the treedeprecated flag (removal in 6.0); setting it only warns and creates nothing
Final output nodeCompositorNodeCompositeNodeGroupOutput, fed through an Image OUTPUT socket declared on tree.interface

On 5.x the group's sockets are declared with tree.interface.new_socket(...), the same interface API shader and geometry node groups use (see procedural-materials-and-shaders and snippets/shader-node-group.py). Without the Image OUTPUT socket the Group Output node has no Image input to link to.

To read an existing compositor back:

python
import bpy


def compositor_tree(scene):
    if bpy.app.version >= (5, 0, 0):
        return scene.compositing_node_group
    return scene.node_tree if scene.use_nodes else None

Glare: enum properties on 4.5, menu sockets on 5.x

The Glare node changed shape in the 5.0 rewrite. On 4.5 Fog Glow is chosen with legacy enum properties; on 5.x those properties are gone and the same choices are input sockets. Menu sockets take the display name ('Fog Glow', 'High'), not the enum identifier, and Size becomes a 0..1 factor instead of the old integer kernel size.

python
import bpy


def configure_fog_glow(glare):
    if bpy.app.version >= (5, 0, 0):
        glare.inputs['Type'].default_value = 'Fog Glow'
        glare.inputs['Quality'].default_value = 'High'
        glare.inputs['Size'].default_value = 0.85
    else:
        glare.glare_type = 'FOG_GLOW'
        glare.quality = 'HIGH'
        glare.size = 6
    # Threshold is an input socket on BOTH versions. The 4.5 `glare.threshold`
    # property is a dead shim (always reads 0.0); writing it changes nothing.
    glare.inputs['Threshold'].default_value = 1.0

Only pixels brighter than Threshold bloom. In compositor-glare emission strengths of 9 to 18 bloom at Threshold = 1.0; raising it to 1000.0 removes the halo entirely.

Build a Glare chain (smoke-tested)

Render Layers into Glare into the output, on whichever tree the scene actually composites. No render; the asserts pin the wiring.

python
import bpy

scene = bpy.context.scene
if bpy.app.version >= (5, 0, 0):
    tree = bpy.data.node_groups.new("BloomComposite", 'CompositorNodeTree')
    tree.interface.new_socket(name="Image", in_out='INPUT', socket_type='NodeSocketColor')
    tree.interface.new_socket(name="Image", in_out='OUTPUT', socket_type='NodeSocketColor')
    out_node = tree.nodes.new("NodeGroupOutput")
    scene.compositing_node_group = tree
else:
    scene.use_nodes = True
    tree = scene.node_tree
    tree.nodes.clear()
    out_node = tree.nodes.new("CompositorNodeComposite")

rl = tree.nodes.new("CompositorNodeRLayers")
glare = tree.nodes.new("CompositorNodeGlare")
if bpy.app.version >= (5, 0, 0):
    glare.inputs['Type'].default_value = 'Fog Glow'
else:
    glare.glare_type = 'FOG_GLOW'
glare.inputs['Threshold'].default_value = 1.0
tree.links.new(rl.outputs["Image"], glare.inputs["Image"])
tree.links.new(glare.outputs["Image"], out_node.inputs["Image"])

composited = scene.compositing_node_group if bpy.app.version >= (5, 0, 0) else scene.node_tree
assert composited == tree
assert hasattr(scene, "node_tree") == (bpy.app.version < (5, 0, 0))
assert any(l.from_node == rl and l.to_node == glare for l in composited.links)
assert any(l.from_node == glare and l.to_node == out_node for l in composited.links)
assert getattr(getattr(scene, "eevee", None), "use_bloom", None) is None

Rendering through the compositor

The tree only runs when scene.render.use_compositing is on. The example renders the same scene with it on and off: the halo outside the emissive silhouette is bright and falls off with distance when on, and exactly zero when off.

python
import bpy

scene = bpy.context.scene
scene.render.use_compositing = True
scene.render.image_settings.file_format = 'PNG'
scene.render.filepath = "/tmp/bloom.png"
bpy.ops.render.render(write_still=True)

Bloom comes from the Glare node on EEVEE and Cycles alike; EEVEE has no use_bloom toggle on 4.5 or 5.x.

Common AI mistakes

  1. scene.node_tree on 5.x. AttributeError. Build a 'CompositorNodeTree' group and assign it to scene.compositing_node_group.

  2. scene.use_nodes = True as the 5.x enable switch. It is a deprecated flag that only warns; no tree appears. Branch it to < (5, 0, 0) only.

  3. Missing interface sockets on the 5.x group. A Group Output node has no Image input until tree.interface.new_socket(name="Image", in_out='OUTPUT', ...) declares one.

  4. Building the group but never assigning it. A compositor group in bpy.data.node_groups does nothing until scene.compositing_node_group = tree.

  5. glare.glare_type = 'FOG_GLOW' on 5.x. The property is gone; set glare.inputs['Type'].default_value = 'Fog Glow'. Same for quality and size.

  6. Enum identifiers in menu sockets. 5.x menu sockets take display names ('Fog Glow', 'High'), not 'FOG_GLOW' / 'HIGH'.

  7. Writing glare.threshold on 4.5. Dead shim, always reads 0.0. The threshold is glare.inputs['Threshold'] on both versions.

  8. scene.eevee.use_bloom = True. Removed in 4.2. Bloom is a compositor Glare node.

  9. Rendering with scene.render.use_compositing = False. The tree is skipped and the output carries no Glare effect.

  10. Branching on bpy.app.version_string. Compare the bpy.app.version tuple.

See also

  • Example examples/compositor-glare/ — the cross-version tree plumbing, Glare property-to-socket move, and a compositing on/off pixel check (--threshold-high exits 4).
  • Skill porting-to-blender-5 — the scene.node_tree and use_nodes rows of the 4.x to 5.x break table.
  • Skill procedural-materials-and-shaders — the shared tree.interface.new_socket group API and emissive materials that feed bloom.

Runnable examples

Each example runs headless, asserts the contract, and exits non-zero when it breaks. Run one with blender --background --python <script> --; pass a falsifier flag to watch the check fail.

  • compositor-glare: Bloom where it actually lives — a compositor Glare (Fog Glow) node fed by Render Layers. Falsify: --threshold-high (exit 4).

Snippets

Short standalone patterns to copy. Each one runs in CI on 5.2 and 4.5 with a check and a falsifier.

References

Heefeg gestallte Froen

Wat mécht de KI-Skill Compositor Nodes?

Build and render through the scene compositor from Python across the 4.5 LTS to 5.x split: scene.use_nodes plus scene.node_tree and a Composite node on 4.5, a CompositorNodeTree node group assigned to scene.compositing_node_group with interface sockets and a Group Output on 5.x, a Render Layers to Glare (Fog Glow) chain, the Glare node's move from enum properties to menu input sockets, and render.use_compositing. Use when the user scripts compositor nodes, adds bloom or glow, hits AttributeError on scene.node_tree in 5.x, sets glare_type or quality and gets AttributeError on 5.x, looks for...

Firwat Compositor Nodes op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Compositor Nodes besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Compositor Nodes an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/skills/compositor-nodes an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Compositor Nodes benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Compositor Nodes benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Compositor Nodes domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Compositor Nodes gratis?

De Skill gëtt vum TMHSDigital op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇