RhinoPython Master Class
4th Design Modelling Symposium Berlin “Rethinking Prototyping”
University of the Arts in Berlin, Germany
Sep 28-29, 2013
Lecturers: Steve Baer [Robert McNeel & Associates] & Giulio Piacentino [geometrydepth]
Through this 2-day intermediate class, we will go deeper in the most encompassing programming language for Rhinoceros 5. We are looking for users who want to start using Rhino.Python with good results. You will be able to extend your Rhino and Grasshopper experience — seeing how to improve scripts, automate and use further tools in your design process. We will first rehearse some basic syntax in Python, and then we will see the potentials of iterative and recursive codes in Rhino and Grasshopper. We will introduce something that was previously only possible for core programmers, like editing the UI.
We want participants to get a solid understanding of the design-orientation of Python in Rhino. We also hope to hear from users on what should be in future implementation of Python in Rhino. We will adjust the class based on some quick polls from all participants. We will use a mixture of RhinoScript and RhinoCommon, covering the following headlines:
- Parsing files and categorizing data. Strategies for modules.
- Websites that can be sources for sample code.
- Conditional statements. Colors.
- Adjacency to a surface and evaluation of points.
- Curves and surfaces: construction by control points, lofts.
- String manipulation. Tricks with Python methods and function calls.
- Getting started with numpy (and maybe Excel if requested).
- Recursion, with the Sierpinski triangle.
- User interface management: built-in and custom functionality.
- Using pre-made modules online. Debug strategies.
- Using a pure-Python library: printing charts and graphics.
- Code compilation (review on options if deemed useful).
- Final: user project start up and user questions.