A scripting API for Blender's Geometry Nodes:
Go to file
Alfredo 1ffed55184 support more math dunder methods 2023-10-08 10:58:29 -04:00
.github/workflows Fix actions 2022-12-09 16:03:40 -05:00
api support more math dunder methods 2023-10-08 10:58:29 -04:00
book Document named outputs syntax 2022-12-09 15:55:32 -05:00
docs
examples
typeshed
.gitignore
LICENSE
README.md Update for Blender 3.5 release 2023-04-01 16:33:48 -04:00
__init__.py
absolute_path.py
external.py
preferences.py

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.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.