Setup geometry_script module if the module name is different

This commit is contained in:
Carson Katri 2022-11-13 15:58:25 -05:00
commit 9d9fd57fe6
3 changed files with 4 additions and 11 deletions

9
examples/Repeat Grid.py Normal file
View file

@ -0,0 +1,9 @@
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)