HI,
I am trying to get the index of each list (86 in total) when it is containing, in this case, a point.
I tried every level and lacing options (i think) but i can’t get these indices.
Output, in my case, must be
66
8
78
etc.
HI,
I am trying to get the index of each list (86 in total) when it is containing, in this case, a point.
I tried every level and lacing options (i think) but i can’t get these indices.
Output, in my case, must be
66
8
78
etc.
if you feel comfortable to do just a bit of scripting:
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
OUT = [i for i, sub in enumerate(IN[0]) if isinstance(sub, list) and len(sub) == 1 and isinstance(sub[0], Point)]
@BimAmbit It wasn’t working for me but i managed to figure it out.