Site Tools

Python Scripting for Rhino and Grasshopper

What is Python?

Python is a modern programing language. It is easier to learn and use than other non-scripting style languages like VB.NET, C#, or C++. Yet it is quite powerful.

You may need Python if you want to:

  • Automate a repetitive task in Rhino much faster than you could do manually.
  • Perform tasks in Rhino or Grasshopper that you don't normally have access to in the standard set of Rhino commands or Grasshopper components.
  • Generate geometry using algorithms.
  • Many, many other things. It is a programming language after all.

Getting started / tutorials

Windows and Mac

Both the Windows and Mac versions of Rhino contain support for the Python scripting language.

Since Rhino Python scripting is available on both platforms, the same Python scripts can run on both breeds of Rhino!

Python in Rhino resources

RhinoScript style functions - Once you understand a bit about Python, importing the rhinoscriptsyntax module will give your Python script access to Rhino functions. This package defines a large set of functions for working with Rhino. Find more information about these functions at Rhino.Python rhinoscriptsyntax Module.

Using RhinoCommon - Python scripts also have full access to the .NET framework including access to Rhino's RhinoCommon SDK. A description of accessing RhinoCommon from Python scripts is at Using RhinoCommon from Python.

Examples - Find examples in the above Rhino.Python rhinoscriptsyntax Module and RhinoCommon pages.


Visit the to get answers from the Rhino development team and other Rhino users with scripting experience.

What about RhinoScript?

Rhino already has a scripting language called RhinoScript. We plan to continue supporting RhinoScript and add functions based on requests.

developer/python.txt ยท Last modified: 2015/10/27 by sandy