That’s because the new script editor does not have a GHPython SDK mode equivalent yet:
Hi @eirannejad , I was gonna wait before logging this, but since the Rhino 8 BETA is now out and the current GHPython component has been (arguably prematurely) removed/hidden: A major missing feature in the new script editor is the ability to run an IronPython component in GH_Component SDK Mode:
[2023-09-15 08_43_04-Grasshopper - unnamed]
I’ve come to rely on this quite extensively for e.g. drawing things , events , and performance . I do find the default code a wee bit bloaty and usually reduce …
See also this topic:
I’ve not really tested the Python 3 integration yet, but I would expect a lot of this type of Grasshopper meta programming to not work. As I recall it does not have ghenv, which I’m using to access the Grasshopper document objects. You can get to that via the Grasshopper namespace though. I’ll have a look when I’m on my laptop
Note that you can still use the current GHPython component in Rhino 8. It’s been marked as deprecated and is therefore hidden. Here’s a how to find it:
[image]
This component is obsolete, you can always find any obsolete component by doing the usual double click type search on the canvas but use “#” first.
2 Likes