Use the Flatten node in python script

@ Hannes - use List Comprehensions - they are much faster than loops:

import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
dataEnteringNode = IN[0]
OUT = [i for sublist in IN[0] for i in sublist]

https://docs.python.org/2/tutorial/datastructures.html

1 Like