Grasshopper Python Scripting Existing Components

Hello, I am new to Rhino and Grasshopper and would like to ask, if there is a way to find, how components in Grasshopper are scripted in Python so I can do my new component similar to existing ones that are in Grasshopper.

Example → You put BooleanUnion into canvas and want to see, how this component is scripted so you can modify it and make similar component to BooleanUnion. Thank you.

Hi, components in Grasshopper are not scripted in Python, but in C# and partially VB. Net. But you can decompile Grasshopper with a .Net decompiler like ILSpy. Maybe there is also one capable of translating into IronPython, but I would rather guess no. Apart from that, you can also try to understand the examples at McNeels documentation page or ask here.

1 Like