From 521d3f06258a92947ddad2ebfe268ba1d598c5a9 Mon Sep 17 00:00:00 2001 From: Libby Date: Sat, 7 Nov 2026 13:16:17 +0000 Subject: [PATCH] docs: link the worked examples, tighten example 3, zones recommendation Co-Authored-By: Claude Sonnet 5.5 --- docs/blender-node-graph-examples.md | 17 ++++++++--------- docs/blender-node-graphs.md | 11 +++++++++-- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/docs/blender-node-graph-examples.md b/docs/blender-node-graph-examples.md index 094279b..1340445 100644 --- a/docs/blender-node-graph-examples.md +++ b/docs/blender-node-graph-examples.md @@ -52,7 +52,8 @@ createNodeGroup geometry "Grass Tuft Generator" interface=[ # seed surface addNode disc GeometryNodeMeshCircle properties{fill_type: TRIANGLE_FAN} inputs{Vertices: 12} addNode sub GeometryNodeSubdivideMesh inputs{Level: 3} -addNode pos1 GeometryNodeInputPosition +addNode pos1 GeometryNodeInputPosition # radial distance +addNode pos2 GeometryNodeInputPosition # captured on the instance domain addNode rlen ShaderNodeVectorMath properties{operation: LENGTH} addNode falloff ShaderNodeMapRange properties{data_type: FLOAT, interpolation_type: SMOOTHSTEP, clamp: true} inputs{"From Min": 0, "To Min": 1.0, "To Max": 0.39} @@ -96,7 +97,7 @@ addNode smooth GeometryNodeSetShadeSmooth properties{domain: FACE} input addNode mat GeometryNodeSetMaterial ``` -Links (the wiring, 44 in all; the group inputs fan out): +Links (the wiring, about 45; the group inputs fan out): ```text gin.Radius -> disc.Radius disc.Mesh -> sub.Mesh @@ -119,8 +120,7 @@ rsw.Output -> c2m.Scale c2m.Mesh -> smooth.Mesh smooth.Mes mat.Geometry -> gout.Geometry ``` -(`pos2` is a third `GeometryNodeInputPosition` evaluated on the instance domain; it and -the omitted node lines follow the same pattern.) About 38 nodes and 44 links. +About 40 nodes and 45 links; the counts are from reading the script, not from Blender. **Expressible:** everything except the capture item. **Needs:** @@ -211,11 +211,10 @@ fwd.Vector->turn.Vector gin.Rotation->turn.Rotation turn.Vector->gout.Direct `Distance`), `ShaderNodeVectorMath` SCALE 0.999, `GeometryNodeSetPosition` at `Hit Index`, `ShaderNodeVectorMath` REFLECT, `ShaderNodeMath` ADD and `+1` for the index. -**Expressible:** all three helpers. **Needs:** **GAP 2** (one Cast Rays per bounce lives -in a Repeat zone in the full graph); **GAP 6** for the object reference -(`ref(object)` is in the design, but an Object Info node's *object* input is a socket -default the document must type as a reference, which it does, so this one is covered); -the legacy **Euler vector socket** `rotation_type` enum differs by node type (verify). +**Expressible:** all three helpers, including the target object, which is a +`ref(object, name)` default on the Object Info node. **Needs:** **GAP 2** (the full +graph runs one Cast Rays per bounce inside a Repeat zone). The Euler/axis `rotation_type` +enum values differ by node type and are read from the running Blender, not assumed. ## 4. Shortest-path labyrinth diff --git a/docs/blender-node-graphs.md b/docs/blender-node-graphs.md index 2ac3b13..a9a57eb 100644 --- a/docs/blender-node-graphs.md +++ b/docs/blender-node-graphs.md @@ -20,6 +20,11 @@ animation/driver authoring on node values, simulation and repeat *zones* (they n paired nodes; see Open questions), baking, add-on node packs, and anything that executes user code. +Worked examples from real setups, with the design gaps they exposed, are in +[`blender-node-graph-examples.md`](blender-node-graph-examples.md). Its gaps 1 to 4 +(item sockets, zones, field-ness on interface sockets, multi-input sockets) change +this document's contract and are to be folded in before cut 1. + ## Tree kinds and owners A **tree** is addressed by `treeKind` and `treeKey`. The owner decides where the @@ -274,7 +279,7 @@ the repo, run by a human or on a runner with Blender): | area | Blender 3.x | 4.0 to 4.x | 5.x | |---|---|---|---| -| group interface | `tree.inputs/outputs` | `tree.interface.new_socket(...)` | same as 4.x | +| group interface | `tree.inputs/outputs` | `tree.interface.new_socket(...)` | same as 4.x (a Blender 5.1.1 translation corpus used it; Blender 5.2.3 LTS is installed on the Starfire workstation and can check the rest) | | material/world tree | `use_nodes = True` then `node_tree` | same | `use_nodes` is deprecated and trees may always exist; confirm | | compositor tree | `scene.use_nodes`, `scene.node_tree` | same | the scene's tree becomes a node group on the scene (`compositing_node_group`); confirm | | geometry nodes zones | none | 3.6 simulation, 4.0 repeat | same | @@ -314,7 +319,9 @@ Each cut is its own PR with tests that fail when its rule breaks. smoke to see which is more faithful. 3. **Zones.** Simulation and repeat zones come as input/output node pairs (`pair_with_output`). Excluded in v1; admitting them needs a paired-add op and a - paired-remove rule. + paired-remove rule. The worked examples show this is not optional for geometry + nodes: the index-of-nearest and raycast setups are inert helpers without a zone + (examples, gap 2). Recommend promoting zones into v1 as `addZone`. 4. **Where node ids are stored** if a future Blender removes custom properties on nodes: fall back to `node.name` only and accept that a UI rename breaks addressing. 5. **Packaging of the exclusion list** as a versioned typed document the daemon can