Code Block function

I’ve seen this code block somewhere but i don’t know what it is for. Anyone please enlighten me?
Thanks

It gives you the elements of an input list associated with indexes 0 to 4 in your example ([startIndexendIndex] in general)
If range exceeds the number of elements on list, an outside range exception is thrown.
image

3 Likes

Hi @alvpickmans
Thanks a lot

Hi @alvpickmans
Do you know how this script work? Why there is no “warning: the index is outside the given range”

I bet there are 5 list elements exiting the Element.Geometry node therefore the [0…4] indices pull those four surfaces and create the polysurface.

1 Like