SJET


SJET <<<


Python for Rhino 101 Primer: 2011

Download the the RhinoPython 101 Primer Free here!

More information about the Primer and recent updates can be found here.

Python for Rhino 101 Primer Introduction:

You’ve just opened the first edition of the Rhino Python primer. This booklet was originally written by David Rutten of Robert McNeel & Associates for Rhino 4 and VBscript and has now been translated to encompass Python for Rhino 5. As always, this primer is intended to teach programming to absolute beginners, people who have tinkered with programming a bit or expert programmers looking for a quick introduction to the methods in Rhino.

Rhinoscript (VBscript) has been supported for many years, with a large user group and extensive support material. As well as giving a basic introduction, this primer looks to easily transition those familiar with VBscript into the world of Rhino Python. For this reason, David Rutten's original primer has been used extensively as the underlying framework for this Python Primer. Python offers exciting new potentials for programming in Rhino with Object-Oriented functionality, simple syntax, access to the .NET framework and a vast number of user-built libraries to extend Rhino's functionality. The same powerful methods that were previously in VBscript are still available, as well as a ton of other exciting methods and features available natively with Python.

Similar to the previous primers, we have the advantage of using geometric and visual examples to help teach programming. In many traditional scenarios, programming is taught with non-visual examples and difficult to understand engineering problems. For this reason, as well as Python's easy-to-read syntax, we should hopefully be able to bring everyone to understand and write simple programs to help automate and design within Rhino.

Programming offers users the powerful ability to automate tasks, make decisions, perform powerful calculations and geometric manipulations, thus, essentially acting as a designer's side kick. This can allow thousands of computations to occur based on dynamic conditions, something that would take a human far too long to process. As a tool for iteration, generation, analysis and design evolution, programming is limitless! Programming also offers a new language to communicate with the world because almost every discipline, from the Sciences, Engineering to Art, utilize code as a progressive new medium - and this primer should hopefully give you an easy introduction into this powerful language for communicating with the world. (With that example, it should be noted that programming may be looked at as any other human language in the sense that it truly takes many hours of practice to become fluent. So don't get discouraged if you aren't an expert in one day!)

I hope we have convinced you of the powerful and exciting potential for this new opportunity of Python in Rhino. Without further ado, lets dive in!

Good luck!

Skylar Tibbits
SJET
www.sjet.us
www.scriptedbypurpose.net

Arthur van der Harten
Kirkegaard Associates
www.perspectivesketch.com
www.kirkegaard.com

Steve Baer
Robert McNeel & Associates
www.rhino3d.com/

A special thanks to David Rutten for the inspiration and invaluable work, pioneering the original Rhinoscript101 Primer. Also many thanks to Bob McNeel and everyone at Robert McNeel & Associates for their generous support!