ghpython

Grasshopper GhPython

For designers who want to use the same flexible language everywhere, GhPython is the Python interpreter component for Grasshopper that allows to execute dynamic scripts of any type. Unlike other scripting components, GhPython allows to use the rhinoscriptsyntax to start scripting without needing to be a programmer. Once on-board and with some practice, you can also get the most of external Python and .Net modules and libraries.

Related Lessons & Examples

10 Print Panel
In this premium python script you can create a parametric pattern based on a random geometric rule i...
Basic Agent Base
Basic Agent Base
In this premium python grasshopper definition you can simulate a basic agent behavior through defini...
Bulged Ribbons
Bulged Ribbons
In this 2d pattern library example file you can model a parametric strip-based pattern by defining t...
Circle Panel
By using this python script you can model a parametric panel with a series of random circles. We hav...
elliptical-growth-500-300x300-1.webp
Elliptical Growth
In this python script you can create a parametric 2D elliptical pattern in grasshopper.
Hilbert Curve Panel
In this premium python script you can create a parametric pattern based on the Hilbert curve inside...
Maze Panel
In this premium python script you can create a maze-like parametric pattern inside a panel in grassh...
Metaball Desk Organizer
Metaball Desk Organizer
In this premium python definition you can create a desk organizer using metaballs.
Pixelated Pattern
In this premium python script you can create a randomized pixelated panel in grasshopper.
Rotated Cells Panel
In this premium python script you can create a parametric pattern based on the rotation of a series...
Shattered Panel
By using this python script you can model a parametric panel with random division lines. We have als...
Shattered Ribbons
Shattered Ribbons
In this 2d pattern library example file you can create a series of parametric dividing ribbons in gr...
Triangular Panel
In this premium python script you can create a parametric triangular pattern inside a panel in grass...
Voronoi Panel
In this premium python script you can create a parametric panel with random voronoi cells.
Wavy Panel
In this python example file, you can model a parametric wavy pattern by using the sine function.
Zigzag Pattern
In this premium python script you can create a Zigzag based pattern inside a panel in grasshopper.

GhPython Plugin

This is the Rhino 5 for Windows version. Rhino for Mac and Rhino WIP+6 all come with their own GhPython interpreter, that is specific and needs no tweaking.

For designers who want to use the same flexible language everywhere, GhPython is the Python interpreter component for Grasshopper that allows to execute dynamic scripts of any type. Unlike other scripting components, GhPython allows to use the rhinoscriptsyntax to start scripting without needing to be a programmer. Once on-board and with some practice, you can also get the most of external Python and .Net modules and libraries.

This component is open-source, and works in Rhino 5. Join this group to receive updates of new versions, and visit the Grasshopper forum for support.

To install:

  • In Grasshopper, choose File > Special Folders > Components folder. Save the gha file there.
  • Right-click the file > Properties > make sure there is no “blocked” text
  • Restart Rhino and Grasshopper

Installation of GhPython, and introduction of list and for