Phyton

Páginas: 58 (14293 palabras) Publicado: 7 de febrero de 2013
Python

101

for Rhinoceros 5

© 2011 All Rights Reserved Revision 3

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 absolutebeginners, 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 thisreason, 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 arestill 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-readsyntax, 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 dynamicconditions, 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 easyintroduction 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 opportunityof 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 www.python.rhino3d.com A special thanks to David Rutten for the inspiration and invaluable work, pioneering the originalRhinoscript101 Primer. Also many thanks to Bob McNeel and everyone at Robert McNeel & Associates for their generous support!

Where to find help...
Forums:
The RhinoPython community is very active and offers a wonderful resource for posting questions/answers and finding help on just about anything!: http://python.rhino3d.com/forums/

General References for Python:
Python's main website offers aplethora of information about the syntax, building-in functionality, libraries etc! This is the main resource for anything Python! http://docs.python.org/ The Python Documentation also has a great introduction into the basics of Python: http://docs.python.org/tutorial/introduction.html http://docs.python.org/tutorial/ A very useful Python style guide: http://www.python.org/dev/peps/pep-0008/ Another...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Phyton
  • Phyton
  • Phyton
  • Informe de Phyton
  • guia phyton
  • Manual de phyton
  • Trabajo Phyton
  • Resolucion phyton

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS