This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
developer:python [2015/10/27] |
developer:python [2020/08/14] 127.0.0.1 external edit |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Python Scripting for Rhino and Grasshopper====== | ||
+ | |{{https:// | ||
+ | =====What is Python? | ||
+ | |||
+ | Python is a modern // | ||
+ | |||
+ | 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 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===== | ||
+ | * [[http:// | ||
+ | * You're not alone. You can get help at the [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * You can find RhinoPython related articles on [[http:// | ||
+ | * [[http:// | ||
+ | * Python tutorial series - [[http:// | ||
+ | * [[http:// | ||
+ | * Nature of Code Video Tutorials - [[http:// | ||
+ | =====Windows and Mac===== | ||
+ | Both the Windows and Mac versions of Rhino contain support for the [[http:// | ||
+ | |||
+ | 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 [[rhinoscriptsyntax]]. | ||
+ | |||
+ | **Using RhinoCommon** - Python scripts also have full access to the .NET framework including access to Rhino' | ||
+ | |||
+ | **Examples** - Find examples in the above [[rhinoscriptsyntax]] and [[PythonAndRhinoCommon|RhinoCommon]] pages. | ||
+ | |||
+ | =====Questions? | ||
+ | Visit the http:// | ||
+ | |||
+ | |||
+ | =====What about RhinoScript? | ||
+ | Rhino already has a scripting language called [[rhinoscript|RhinoScript]]. We plan to continue supporting RhinoScript and add functions based on requests. |