Blender node actions: refuse image-texture nodes in code; point docs at PR #3

GeometryNodeImageTexture, GeometryNodeInputImage and ShaderNodeTexIES passed check_idname
though the docs said image-texture nodes are refused. The design doc is not in this tree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Libby 2026-11-10 17:53:45 +00:00
commit f1bb089410
2 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,7 @@
Owner of how an intent becomes a node group, a node, a link or a modifier input on Blender 5.2.
Validation is plain Python and runs before bpy is touched; apply steps that can still fail after
Blender has been asked (an unknown node type, an enum that is not offered) undo what they made, so a
refused intent leaves the tree as it was. Docs: docs/blender-node-graphs.md.
refused intent leaves the tree as it was. Docs: docs/node-actions.md. The design is PR #3 (branch libby/blender-node-graphs-design).
"""
from __future__ import annotations
@ -16,9 +16,10 @@ from .scene_actions import ActionRefused
ID_PATTERN = re.compile(r"[A-Za-z0-9._-]{1,63}")
KEY_PATTERN = re.compile(r"[A-Za-z0-9 ._-]{1,63}")
# A geometry tree may hold geometry, function and shader math nodes. Nodes that read or write files,
# run code, write caches or nest groups are not part of this cut.
# run code, write caches, nest groups or sample images are not part of this cut.
NODE_IDNAME = re.compile(r"(GeometryNode|FunctionNode|ShaderNode)[A-Za-z0-9]+")
NODE_DENIED = ("Import", "Export", "Script", "Bake", "Group", "Simulation", "Repeat", "Foreach", "Viewer", "TexImage", "TexEnvironment")
NODE_DENIED = ("Import", "Export", "Script", "Bake", "Group", "Simulation", "Repeat", "Foreach", "Viewer", "TexImage", "TexEnvironment",
"ImageTexture", "InputImage", "TexIES")
MAX_NODES = 500
MAX_INTERFACE = 64
MAX_MODIFIERS = 8

View file

@ -3,7 +3,7 @@
Command intents (`brokkr.blender.command_intent.v0`) that build and drive a Geometry Nodes graph.
Owner: `brokkr_bridge/node_actions.py`; the target only dispatches. Every field is validated before
`bpy` is touched; a refused intent is a `failed` receipt naming the rule and leaves the tree as it was.
Design and the parts not built yet: `docs/blender-node-graphs.md` (on `libby/blender-node-graphs-design`).
Design and the parts not built yet: the design document lives in PR #3 (branch `libby/blender-node-graphs-design`), not in this tree.
| action | fields | rule |
|---|---|---|