What I ended up doing is opening the script component in V7, copy there, and paste it into the the v8 script component you made. RH-75936 copy and pasting code from old to new script component doesn’t work
Not sure if this is what Martin means but in my testing null values in a legacy script component won’t throw a value error but in the new scripting components they will if the inputs are null.
As example something simple like:
if x:
…“do this”
else:
…return
If you don’t have x input hooked up, it will throw a value error saying that x is not defined and in legacy script component it will simply realize x is null and therefore it would return the script in this example.
Legacy IronPython2 code copied into a new IronPython2 script component will do this as well as Python3, making me think it’s the script component itself and not the Python version?
Failed to get instance from script
Exception: Compile Error
‘IEnumerable’ does not contain a definition for ‘Count’ and no accessible extension method ‘Count’ accepting a first argument of type ‘IEnumerable’ could be found (are you missing a using directive or an assembly reference?) (Error CS1061) rhinocode:///grasshopper/1/b7fd9d00-6dd3-420f-9382-b6bafb558dfc/e9461b65-3bc4-4356-ab94-48dfee8b17b1:[87:47]
Hi @Gijs another feature or bug in new script componet and old c# components in Rhino8wip that we able in Rhino 7 zoom in and zoom out in script screen component by Ctrl + Middle mouse button reel
But in Rhino wip grasshopper unable!
Please resolve it!
And if we create cluster from new script componet in rhino8wip Can’t create icon for it (icon is fix C#)