Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
developer:python [2015/10/26]
developer:python [2020/08/14]
127.0.0.1 external edit
Line 1: Line 1:
 +======Python Scripting for Rhino and Grasshopper======
 +|{{https://www.python.org/static/community_logos/python-logo.png?nolink}}|{{:developer:primer_python_cover.png?nolink&400}}|
  
 +=====What is Python?=====
 +
 +Python is a modern //programming 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 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://download.rhino3d.com/IronPython/5.0/RhinoPython101/|{{:developer:primer_python_cover.png?100}}]] Get the [[http://download.rhino3d.com/IronPython/5.0/RhinoPython101/|RhinoPython 101]] manual.
 +  * You're not alone. You can get help at the [[http://discourse.mcneel.com/category/scripting|Rhino.Python community forum]].
 +  * [[http://designalyze.com/]] - Python instructional videos.
 +  * [[http://www.plethora-project.com/2011/09/12/rhino-python-tutorials/]] - Python instructional videos.
 +  * You can find RhinoPython related articles on [[http://stevebaer.wordpress.com/category/python/|Steve Baer's blog]].
 +  * [[http://wiki.python.org/moin/BeginnersGuide/Programmers|Getting started with Python in general.]]
 +  * Python tutorial series - [[http://www.tutorialspoint.com/python/index.htm]].
 +  * [[http://discourse.mcneel.com/t/rhino-python-dash-docset/6399|Rhino.Python Dash Docset for fast, offline API searches]].
 +  * Nature of Code Video Tutorials - [[http://www.youtube.com/watch?v=Kyi_K85Gsm4&list=PL5Up_u-XkWgP7nB7XIevMTyBCZ7pvLBGP|on YouTube]].
 +=====Windows and Mac=====
 +Both the Windows and Mac versions of Rhino contain support for the [[http://www.python.org|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 [[rhinoscriptsyntax]].
 +
 +**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 [[PythonAndRhinoCommon]].
 +
 +**Examples** - Find examples in the above [[rhinoscriptsyntax]] and [[PythonAndRhinoCommon|RhinoCommon]] pages.
 +
 +=====Questions?=====
 +Visit the http://discourse.mcneel.com/category/scripting 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|RhinoScript]]. We plan to continue supporting RhinoScript and add functions based on requests.