carson-katri/geometry-script
Tentang
A scripting API for Blender's Geometry Nodes
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +7
- dalam 15 hari
- +6
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
A scripting API for Blender's Geometry Nodes, shaders and compositor:
|
|
Installation
Geometry Script is a Blender extension and requires Blender 5.2 or newer.
Drag the box for your Blender version into Blender to install it:
Blender asks to allow online access if it's off, then to add the Geometry Script repository, then confirms the install. The nightly release always lists the links for every Blender version with a build.
To install manually instead:
- Download the ZIP matching your Blender version from the
nightlyrelease, e.g.geometry_script-1.0.0-blender-5.2.zip - Open Blender > Preferences > Get Extensions
- Open the dropdown at the top right, choose Install from Disk... and select the downloaded ZIP file
Claude Code skill
The repository is also a Claude Code plugin marketplace with a skill for building node trees with Geometry Script. Install it with:
/plugin install geometry-script --marketplace carson-katri/geometry-script
On Claude Code versions before 2.1.275, add the marketplace first:
/plugin marketplace add carson-katri/geometry-script
/plugin install geometry-script@geometry-script
The skill runs scripts through Blender's MCP server when it's connected, or in background Blender otherwise. Run /plugin marketplace update geometry-script to get the latest version, or turn on auto-update for the marketplace in /plugin.
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.
Every node in your Blender version is available as a typed Python function, generated from Blender itself, so your editor can complete node names, inputs, outputs and enum values.
Shader node groups, materials, worlds and compositor node groups can be scripted the same way, with geometry_script.shader and geometry_script.compositor:
from geometry_script.shader import *
@material("Gold")
def gold():
return principled_bsdf(base_color=(1.0, 0.77, 0.34, 1.0), metallic=1.0, roughness=0.2).bsdf
Documentation
Read the documentation for more information on installation, syntax, and tutorials.
Contributing
Use uv to get fake-bpy-module and some pyright settings.
uv sync
The node modules (api/nodes.py, api/shader_nodes.py and api/compositor_nodes.py) are generated from Blender and aren't checked in. Loading the add-on from a checkout generates them with that Blender, or you can generate them yourself, e.g. for editor completions:
blender -b --factory-startup --python code_generator/node_functions_generator.py
To build an installable package for a specific Blender version, which generates the node modules with that Blender and runs the smoke test:
python tools/build.py --blender /path/to/blender # writes dist/geometry_script-<version>-blender-<major>.<minor>.zip
Then you can follow Blender's steps to setup a symlink for a local repository.
Jelajahi proyek terkait
Memuat…
