Learn RHINO-GRASSHOPPER-NODES with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Grasshopper Internal Node Example
[Number Slider] -> [Multiply (×2)] -> [Circle (radius input)]
A simple Grasshopper workflow using internal nodes: Number Slider -> Multiply -> Circle. This creates a circle with a radius controlled by the slider.
2
Python Script Component Example
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 = pts
Custom Python node in Grasshopper that creates a series of points along the X-axis.