blender-geometry-script/README.md

49 wiersze
1.5 KiB
Markdown

2022-11-15 17:59:28 +00:00
![Geometry Script wordmark](book/src/images/wordmark.png)
2022-11-13 20:23:11 +00:00
A scripting API for Blender's Geometry Nodes:
2022-11-13 20:27:01 +00:00
<table>
<tbody>
<tr>
<td>
2022-11-13 20:23:11 +00:00
```python
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
2023-04-01 20:29:14 +00:00
).mesh.mesh_to_points()
2022-11-13 20:23:11 +00:00
return g.instance_on_points(instance=geometry)
```
2022-11-13 20:27:01 +00:00
</td>
<td>
2022-11-15 17:59:28 +00:00
![Generated node tree](book/src/images/example_generated_tree.png)
2022-11-13 20:27:01 +00:00
</td>
</tr>
</tbody>
</table>
2022-11-13 20:23:11 +00:00
## Installation
1. [Download the source code](https://github.com/carson-katri/geometry-script/archive/refs/heads/main.zip)
2. Open *Blender* > *Preferences* > *Add-ons*
3. Choose *Install...* and select the downloaded ZIP file
2022-12-01 14:30:11 +00:00
Or you can get it from the [Blender Market](https://www.blendermarket.com/products/geometry-script).
## 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.
2022-11-15 18:40:30 +00:00
## [Documentation](https://carson-katri.github.io/geometry-script/)
2022-12-01 14:30:11 +00:00
Read the documentation for more information on installation, syntax, and tutorials.