You’ve just opened the
rst edition of the Rhino Python primer. This booklet was originally written by DavidRutten of Robert McNeel & Associates for Rhino 4 and VBscript and has now been translated to encompass Pythonfor Rhino 5. As always, this primer is intended to teach programming to absolute beginners, people who havetinkered with programming a bit or expert programmers looking for a quick introduction to the methods inRhino. Rhinoscript (VBscript) has been supported for many years, with a large user group and extensive supportmaterial. As well as giving a basic introduction, this primer looks to easily transition those familiar with VBscriptinto the world of Rhino Python. For this reason, David Rutten's original primer has been used extensively as theunderlying framework for this Python Primer. Python offers exciting new potentials for programming in Rhinowith Object-Oriented functionality, simple syntax, access to the .NET framework and a vast number of user-builtlibraries to extend Rhino's functionality. The same powerful methods that were previously in VBscript are stillavailable, 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 teachprogramming. In many traditional scenarios, programming is taught with non-visual examples and dif
cult tounderstand engineering problems. For this reason, as well as Python's easy-to-read syntax, we should hopefullybe 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 calculationsand geometric manipulations, thus, essentially acting as a designer's side kick. This can allow thousands ofcomputations 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 alsooffers 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 easyintroduction into this powerful language for communicating with the world. (With that example, it should benoted that programming may be looked at as any other human language in the sense that it truly takes manyhours of practice to become
uent. 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 TibbitsSJETwww.sjet.usArthur van der HartenKirkegaard Associates
Robert McNeel & Associates
A special thanks to David Rutten for the inspiration and invaluable work, pioneering the original Rhinoscript101Primer. Also many thanks to Bob McNeel and everyone at Robert McNeel & Associates for their generous support!