Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Design Scripting
Design Scripting
  • Week 1: Python Basics
    • Expressions
    • Statements
    • Whitespace
    • Functions
    • Types, Part 1
  • Week 2: Collections, Objects, and Grasshopper
    • Collections
      • Sequences
      • Sets
      • Dictionaries
    • Objects
    • Python in Grasshopper
  • Week 4: Grasshopper (cont.), Using Packages
    • Grasshopper, Continued
    • Using Modules and Packages
      • typing: Advanced Type Hints
      • ghpythonlib.treehelpers: Using lists instead of trees
      • rhinoscriptsyntax: Helper functions for Rhino
      • Rhino: Python bindings of Rhino’s C# API
  • Week 5: Vectors and Grids
    • A Crash Course in Vectors
    • Working with Grids
      • Grasshopper Grid Components
      • Custom Grid Components
  • Week 6: Randomness and Grid Applications
    • Randomness in Python
    • Applying Randomness to Grids
  • Week 7: Designing an Algorithmic Process
    • Taking Inspiration from Square Kufic Calligraphy
    • Designing Assignment 3
  • Week 8: Iterative Rule Systems
    • Cellular Automata
    • Lindenmayer Systems
  • Week 9: Open-Source Libraries, and Another Iterative Design System
    • Using Open-Source Libraries
    • Wave Function Collapse

Assignments

  • Final Project
    • Topic Selection & Research
    • Implementation
    • Writeup
  • Assignment 0: CodingBat Setup
  • Assignment 1: Snap, Crackle, Pop!
  • Assignment 2: 2D Cubies Illusion
  • Assignment 3: Cluster Sprawls
  • Assignment 4: Elementary Cellular Automaton
  • Extra Credit: CodingBat

Resources

  • Helpful Functions
  • Type Hints Reference
Back to top
View this page

Python in Grasshopper¶

I can’t make a better guide on the Python 3 script component than the official guide. So, in an effort to avoid duplicating a whole bunch of information, refer to that guide.

The most important sections for this course are:

  • Python Component

  • Inputs, Outputs

  • Script-Mode

  • Debugging Scripts

  • PyPI Packages

Additional important references are:

  • Grasshopper data trees and Python

Next
Week 4: Grasshopper (cont.), Using Packages
Previous
Objects
Copyright © 2025, Russell Newton
Made with Furo