GHPython Content From AECtech+ Barcelona Workshop

Hi All,

I ran a short GHPython workshop at the AECtech+ event in Barcelona. I used this GitHub repository for sharing files with the workshop participants, and thought I’d share all the content here as well. Here is the workshop and content descriptions/links from the GitHub readme file:


Dynamically Drawing and Reacting to Things with GHPython

There is more to running GHPython components in SDK Mode than compiling plugins. We will demonstrate, explore, and combine these overlooked features that are enabled once you step out of procedural mode. This includes full access to the Rhino display pipeline, enabling custom 2D and 3D drawing features (e.g. double-sided materials and other methods not exposed in vanilla Grasshopper), drawing into/above screen space for developing legends and heads up displays, and subscribing to Rhino events for developing dynamic geometry pipelines and mouse interaction. Although still in flux, everything we learn should be directly applicable to the IronPython mode of the Rhino 8 script editor.

Slideshow and Exercises

I have prepared this 44 page PDF slideshow (mirror) and a collection of accompanying exercise files for our AECtech+ workshop at the McNeel Europe headquarters in Barcelona. You can click the green Code button above and select Download Zip if you want to download all the exercises at once (note: on GitHub).

Prerequisites

If you are unfamiliar or rusty with GHPython, I would suggest flipping through this 197 page PDF slideshow (mirror) and its accompanying exercises. I have been using these when teaching our in-house BIG Academy GHPython beginners course (note that it has been slightly redacted for confidentiality).


We used Rhino 7 for the workshop, but I think the files should work in Rhino 8 now. You might need to explicitly set the components to preview stuff for some of them though, see slideshow for details. Also, many thanks to McNeel Europe for hosting the workshops/dinner/drinks (@fraguada @pedrocortes @carlosperez) and TT CORE studio for the invitation/organising (@DavidMans) :raised_hands:

Best,

Anders

20 Likes

Looks very interesting! Will definitevely read through the material.
Thank you for sharing @AndersDeleuran !

1 Like

Thanks for sharing, Anders!

1 Like

Thank you so much for sharing this! @AndersDeleuran

EDIT:

Just read through both docs and as someone who is just scratching the surface of what’s possible with Python in Rhino and Grasshopper this is so and well documented. Thanks again!

1 Like

Cheers @michaelvollrath, glad to hear it might be useful :slight_smile:

What a beautifully made document. Even if I don’t understand a bit of it it is just a pleasure to look at.

1 Like

Haha, thanks so much @Piotr. Perhaps the relative beauty might inspire understanding, the second slideshow should cover everything a total GHPython beginner would need to get going, I think :technologist:

If I ONLY had time for it, but it is so tempting now.

1 Like

Just a small update that I added MeshEnvironmentMap (based on this old C# example by the always lovely @DaveReeves) and MeshZebraAnalysis to the Exercises examples folder. Seems like a natural extension of the dynamic drawing content, and it didn’t see a working example of how to implement the zebra drawing class here on Discourse (from an admittedly quick search):

3 Likes

This is awesome! Thanks so much (as always) for sharing things like this @AndersDeleuran.
I find it immensely helpful to learn with tangible examples like these.

1 Like