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 had a look and 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 employ 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, too.
We would want participants to get a solid understanding of the design-orientation of Python in Rhino. We also hope to hear from users what should be there in future implementation of Python in Rhino; in order to help further. We will adjust the class based on some quick polls from all participants. A mixture of RhinoScript and RhinoCommon will be used 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.