Script component input list type

Script component gets input list type as System.Collections.Generic.List[Object] instead of built-in Python list.


It is therefore not possible to access Python list methods or properties.

a = points[2:5]

It is possible to use typecasting. But I think it’s expected to get list as python default list.

points = list(points)
a = points[2:5]

Having access to Python 3 in Grasshopper is truly amazing and I am very grateful for it. I understand that it is currently in a WIP version, and all these small issues will be resolved soon. My aim is to only help and contribute. @eirannejad

1 Like