GhPython

Surface Subdivision

Surface Component Definition

 

Create a surface panelization of a surface defined by 4 corner points.

import rhinoscriptsyntax as rss

import Rhino.Geometry as rg

 

Read more: Surface Subdivision

Point cube

 Point Cube with custom attributes

Point cube definition

This sample script creates a simple cube with a series of points that control the amount by getting x,y,z maximum values. Colors are automatically generated depending on the coordenates. Use the bake? toogle to bake geometry with custom properties, and the calculate? one to control when to activate the component. You can always use the same code as snippets for wour own components.

#script written by Adolfo Nadal

#import rhinoscriptsyntax library

import rhinoscriptsyntax as rss

Read more: Point cube

Recursive Tree

 RecursiveTree

Recursive Tree Definition

This sample script creates a recursive tree by controling the total number of branches, the minimum branch length, and the rotation. It can also bake geometry by adding custom attributes, therefore expanding the native grasshopper capabilities.

#you can also see http://atlv.org/education/ghpython/ for material properties

#import rhinoscriptsyntax to perform operations

#import rhino geometry to add geometry

import rhinoscriptsyntax as rss

import Rhino.Geometry as rg

import random

Read more: Recursive Tree

Search Site




archi·o·logics survey

I am interested in: