|
| 1 | +# Geometry Nodes bundle round-trip |
| 2 | + |
| 3 | +Combine Bundle / Separate Bundle packing a cube plus Scale, Offset, and |
| 4 | +Mark — witnessing [`geometry-nodes-python`](../../skills/geometry-nodes-python/SKILL.md) |
| 5 | +item-name round-trip, not tree structure. |
| 6 | + |
| 7 | +5.x RNA is `NodeCombineBundle` / `NodeSeparateBundle`. |
| 8 | +`GeometryNodeCombineBundle` is the **4.5 experimental** id and is undefined |
| 9 | +on 5.2. 4.5 LTS keeps the old names behind |
| 10 | +`preferences.experimental.use_bundle_and_closure_nodes` (default **off**); |
| 11 | +unflagged evaluation is empty. This example skips on 4.5 |
| 12 | +(`SMOKE_SKIP: Bundles require Blender 5.0+`, exit 77, catalog |
| 13 | +`min_version` 5.0). `--force-run` bypasses the skip and creates the 5.x |
| 14 | +RNA so 4.5 fails for that reason — not a hidden pass. |
| 15 | + |
| 16 | +Closed form (1 m cube, Scale=2, Offset=`(1.5, 0, 0)`, Mark=`0.314159`): |
| 17 | + |
| 18 | +- verts/faces = 8/6 |
| 19 | +- x-extent `[0.5, 2.5]` |
| 20 | +- POINT `bundle_mark` = `0.314159` on all 8 verts |
| 21 | + |
| 22 | +**Count alone is not enough.** A cube that never entered the bundle is |
| 23 | +still 8/6 (`--bypass`). Bbox from the unpacked Scale/Offset is the second |
| 24 | +axis; the named attribute from the unpacked Float is the third. |
| 25 | + |
| 26 | +No gallery still. The contract is item names + typed round-trip; the |
| 27 | +visible mesh is one cube and the attribute is invisible. Failure would |
| 28 | +not read at thumbnail. |
| 29 | + |
| 30 | +**What failure each check would catch:** |
| 31 | + |
| 32 | +- exit 77 — Blender < 5.0 and not `--force-run` |
| 33 | +- exit 2 — `GeometryNodeCombineBundle` on 5.x (`--legacy-rna`) |
| 34 | +- exit 3 — pairing/names broken (`--mismatch` → 0/0; `--force-run` on 4.5 |
| 35 | + raises `NodeCombineBundle` undefined, caught as exit 1) |
| 36 | +- exit 4 — count matches but unpacked Scale/Offset did not (`--bypass`, |
| 37 | + `--pack-scale 1`) |
| 38 | +- exit 5 — bbox matches but `bundle_mark` did not travel through the bundle |
| 39 | + |
| 40 | +## Run |
| 41 | + |
| 42 | +```bash |
| 43 | +blender --background --python gn_bundle_roundtrip.py -- |
| 44 | +blender --background --python gn_bundle_roundtrip.py -- --force-run |
| 45 | +``` |
0 commit comments