Python in Grasshopper2

Hi there,

I’m testing out grasshopper 2 and I’m unable to access the script terminal - i typed script, python, code but no relevant component would show up. How can i access it?

Thank you :slight_smile:

For now it’s hidden, you need to type # symbol before python to find it.

thank you for responding, I typed # before python and still nothing shows up

I typed # and script but i’m unsure how to set a python terminal and i couldn’t find anything in docs. A code editor did not pop up

I’m pretty sure they’re Rhino 9 WIP only, see:

Hmm… do you have the latest Rhino WIP? If I remember correctly, at one point, I had Grasshopper 2 installed through the PackageManager, I had to uninstall it because GH2 ships with Rhino 9 WIP by default now, and there was a conflict.

okay, just curious, how different will scripting be from GH1 because. Since rhino8 GH1 already support Cpython libraries which is nice - I suppose its the same but faster?

As far as I can tell, it’s pretty much the same as the Rhino 8 scripting components. But with the new additions Ehsan outline in the topic above.

I haven’t tested scripting performance in GH2 yet, but the new Rhino 8 Iron-/Python scripting components were/are slower than GhPython in Rhino 7. So maybe temper expectations. On the other hand, simple/inherent parallel execution does sound quite cool!

Edit: From a very quick/mostly meaningless benchmark, performance looks fairly similar: