A scripting API for Blender's Geometry Nodes:
Go to file
Carson Katri 8aba8b2e7e Keep docs and typeshed folders so files can be created 2022-12-02 19:23:10 -05:00
.github/workflows Remove dot from directory 2022-11-15 13:10:31 -05:00
api Add simulation decorator 2022-12-01 09:07:07 -05:00
book Add simulation decorator 2022-12-01 09:07:07 -05:00
docs Keep docs and typeshed folders so files can be created 2022-12-02 19:23:10 -05:00
examples Update examples to use generated enums 2022-11-17 13:18:08 -05:00
typeshed Keep docs and typeshed folders so files can be created 2022-12-02 19:23:10 -05:00
.gitignore Keep docs and typeshed folders so files can be created 2022-12-02 19:23:10 -05:00
LICENSE Create LICENSE 2022-11-13 14:53:08 -05:00
README.md Update README.md 2022-12-01 09:30:11 -05:00
__init__.py Reorder model renaming 2022-12-02 08:32:29 -05:00
absolute_path.py Add default argument value support 2022-11-14 18:31:26 -05:00
external.py Add helpers for working with external files and docs 2022-11-13 18:49:09 -05:00
preferences.py Add helpers for working with external files and docs 2022-11-13 18:49:09 -05:00

README.md

Geometry Script wordmark

A scripting API for Blender's Geometry Nodes:

from geometry_script import *

@tree("Repeat Grid")
def repeat_grid(geometry: Geometry, width: Int, height: Int):
    g = grid(
        size_x=width, size_y=height,
        vertices_x=width, vertices_y=height
    ).mesh_to_points()
    return g.instance_on_points(instance=geometry)

Generated node tree

Installation

  1. Download the source code
  2. Open Blender > Preferences > Add-ons
  3. Choose Install... and select the downloaded ZIP file

Or you can get it from the Blender Market.

What is Geometry Script?

Geometry Script is a robust yet easy to use Python API for creating Geometry Nodes with code.

At a certain point, Geometry Node trees become unmanagably large. Creating node trees in Python enables quicker editing and reorganization of large, complex trees.

Geometry Script has all of the performance and capabilities of Geometry Nodes, but in a more managable format. The scripts are converted directly to Geometry Node trees making them easy to tweak for others unfamiliar with scripting.

Documentation

Read the documentation for more information on installation, syntax, and tutorials.