Python Script Component Example - Rhino-grasshopper-nodes Typing CST Test
Loading…
Python Script Component Example — Rhino-grasshopper-nodes Code
Custom Python node in Grasshopper that creates a series of points along the X-axis.
import Rhino.Geometry as rg
pts = []
for i in range(10):
pts.append(rg.Point3d(i*2.0, 0, 0))
# 'a' is the Grasshopper output parameter
a = ptsRhino-grasshopper-nodes Language Guide
Grasshopper is a visual programming language and environment integrated with Rhino 3D, allowing users to create parametric designs using nodes and wires instead of traditional coding. It enables algorithmic design, computational geometry, and complex parametric workflows without writing textual code.
Primary Use Cases
- ▸Parametric architecture modeling
- ▸Complex surface generation
- ▸Algorithmic design exploration
- ▸Digital fabrication preparation (CNC, 3D printing)
- ▸Integration with environmental, structural, or data analysis plugins
Notable Features
- ▸Node-based, visual programming workflow
- ▸Live preview of geometry and data flow
- ▸Parametric control of inputs, sliders, and lists
- ▸Expandable via third-party plugins (Kangaroo, Ladybug, Weaverbird)
- ▸Supports conditional logic and iteration without code
Origin & Creator
Developed by David Rutten at McNeel for Rhino 3D, to provide visual programming for designers who prefer graphical over textual coding.
Industrial Note
Essential for architects, computational designers, and engineers working on parametric modeling, generative design, or automated fabrication workflows.