Skip to content

EL4CTEO/blender-skills / skills/blender-geometry-nodes

blender-geometry-nodes

Verified

Geometry Nodes in Blender 5.3 - fields, domains, attributes, instancing, zones (simulation/repeat/for-each), closures/bundles, lists, SDF grids, node tools, baking, plus a JSON-to-node-tree builder and socket inspector. Use for scattering, procedural assets/environments, parametric tools and modifier inputs.

FileKindSize
SKILL.mdskill md6.4 KB
references/recipes.mdmarkdown3.8 KB
scripts/_bpyx.pyscript4.4 KB
scripts/gn_builder.pyscript9.2 KB

references/recipes.md

View on GitHub
# gn_builder recipes (specs verified on 5.2)

Pass these as `spec=` (MCP) or save them as JSON for `--spec`. Run `--describe` to check socket names when you change node types.

## Scatter instances on a surface
```json
{"name": "GN_Scatter",
 "inputs": [["Geometry","GEOMETRY"], ["Density","FLOAT",10,{"min":0}], ["Seed","INT",0],
            ["Instance","OBJECT"], ["Scale Min","FLOAT",0.8], ["Scale Max","FLOAT",1.2]],
 "outputs": [["Geometry","GEOMETRY"]],
 "nodes": {
   "dist": ["GeometryNodeDistributePointsOnFaces", {"distribute_method":"RANDOM"}],
   "obj":  ["GeometryNodeObjectInfo", {"transform_space":"RELATIVE"}],
   "rnd":  ["FunctionNodeRandomValue", {"data_type":"FLOAT"}],
   "inst": ["GeometryNodeInstanceOnPoints"],
   "join": ["GeometryNodeJoinGeometry"]},
 "links": [["in.Geometry","dist.Mesh"], ["in.Density","dist.Density"], ["in.Seed","dist.Seed"],
           ["in.Instance","obj.Object"], ["dist.Points","inst.Points"], ["obj.Geometry","inst.Instance"],
           ["dist.Rotation","inst.Rotation"],
           ["in.Scale Min","rnd.Min"], ["in.Scale Max","rnd.Max"], ["in.Seed","rnd.Seed"], ["rnd.Value","inst.Scale"],
           ["inst.Instances","join.Geometry"], ["in.Geometry","join.Geometry"], ["join.Geometry","out.Geometry"]]}
```
5.2: Random Value has dynamic sockets (`Min`, `Max`, `ID`, `Seed` → `Value`) whose type follows `data_type`. Older tutorials use index-based duplicates, which no longer exist. Distribute Points outputs `Rotation` (aligned to the normal) directly.

## Pipe / cable along a curve
```json
{"name": "GN_Pipe",
 "inputs": [["Geometry","GEOMETRY"], ["Radius","FLOAT",0.05], ["Resolution","INT",12]],
 "outputs": [["Geometry","GEOMETRY"]],
 "nodes": {"circle": ["GeometryNodeCurvePrimitiveCircle"],
           "c2m": ["GeometryNodeCurveToMesh", {}, {"Fill Caps": true}],
           "smooth": ["GeometryNodeSetShadeSmooth"]},
 "links": [["in.Resolution","circle.Resolution"], ["in.Radius","circle.Radius"],
           ["in.Geometry","c2m.Curve"], ["circle.Curve","c2m.Profile Curve"],
           ["c2m.Mesh","smooth.Geometry"], ["smooth.Geometry","out.Geometry"]]}
```
Apply to a curve object (`bpy.data.curves.new(..., "CURVE")`). Add `Resample Curve` for even segments.

## Repeat zone (iterative subdivide)
```json
{"name": "GN_Repeat", "inputs": [["Geometry","GEOMETRY"], ["Count","INT",3]], "outputs": [["Geometry","GEOMETRY"]],
 "nodes": {"rin": ["GeometryNodeRepeatInput"], "rout": ["GeometryNodeRepeatOutput"],
           "sub": ["GeometryNodeSubdivideMesh", {}, {"Level": 1}]},
 "pairs": [["rin","rout"]],
 "links": [["in.Count","rin.Iterations"], ["in.Geometry","rin.Geometry"], ["rin.Geometry","sub.Mesh"],
           ["sub.Mesh","rout.Geometry"], ["rout.Geometry","out.Geometry"]]}
```
The repeat output starts with one `Geometry` item. Add more state with the 4th node field: `{"repeat_items": [["GEOMETRY","Geometry"], ["FLOAT","Value"]]}`.

## Store a mask attribute for shaders/export
```json
{"name": "GN_HeightMask", "inputs": [["Geometry","GEOMETRY"]], "outputs": [["Geometry","GEOMETRY"]],
 "nodes": {"pos": ["GeometryNodeInputPosition"], "sep": ["ShaderNodeSeparateXYZ"],
           "store": ["GeometryNodeStoreNamedAttribute", {"data_type":"FLOAT","domain":"POINT"}, {"Name":"_height"}]},
 "links": [["in.Geometry","store.Geometry"], ["pos.Position","sep.Vector"], ["sep.Z","store.Value"],
           ["store.Geometry","out.Geometry"]]}
```
Read it in a material with an Attribute node (`attribute_name="_height"`). glTF exports `_`-prefixed attributes with `export_attributes=True`.

## Shader tree with the same builder
```json
{"tree": "shader", "material": "M_Rust",
 "nodes": {"out": ["ShaderNodeOutputMaterial"], "bsdf": ["ShaderNodeBsdfPrincipled"],
           "noise": ["ShaderNodeTexNoise", {}, {"Scale": 8.0}], "ramp": ["ShaderNodeValToRGB"]},
 "links": [["noise.Fac","ramp.Fac"], ["ramp.Color","bsdf.Base Color"], ["bsdf.BSDF","out.Surface"]]}
```
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall