4.1. GH-Python

Introduction to GH-Python

In this manual you will learn how to create your custom scripts using GH-Python in Grasshopper for Rhino.

Component

GH-Python component can be found in Maths>Script.

Vertices

The default GH-Python component has two inputs and two outputs. You can change the names of input and output.

Vertices

The user can also change the Data Structure of the input:

  • Item Access
  • List Access
  • Tree Access
Vertices

And also change the Data Type (Type hint).

Vertices

Finally, by Double-Clicking on the GH-Python component, you will have access to the script editor.

Vertices