geometry-nodes-python
Installation
SKILL.md
Geometry Nodes in Python
Trigger
Use this skill when the user:
- Wants to build a Geometry Nodes tree from a script rather than the editor
- Mentions
GeometryNodeTree,node_groups.new,tree.interface,tree.links.new - Needs to apply a generated GN tree as a modifier on an object
- Asks about Bundles, Repeat Zones, or for-each Element zones from Python
High-level shape
The Python pattern for building a Geometry Nodes tree has four phases:
- Create the node group and its interface (input and output sockets).
- Instantiate nodes by their exact RNA bl_idname.
- Wire nodes with
tree.links.new. - Add a NODES modifier on the target object that points at the group.