Hi,
I am stuck here, as I want to filter only line from python script. I already used GetType() for the following result:
Thanks!!!
If you want 0 index from that list try typing:
a[2][0];
into the codeblock
thank a lot!!!
I have another problem, how can I keep list L3 and flatten the rest in python?
I tried to use flatten in python
List.Flatten(t1@@L3<1>, -1)
but seems I have warning for the @
Dunno if that’ll help?
Oh and this:
yes it helps
but I want to keep L3 level after flatten in python too
Best to start a new thread btw.
There isn’t really a need to do this with Python.
Check out List.RemoveIfNot, it’s OOTB and does exactly what you want
For the type input use something like this: Autodesk.DesignScript.Geometry.Line
[quote=“Daan, post:11, topic:74745”]
There isn’t really a need to do this with Python.
Check out List.RemoveIfNot , it’s OOTB and does exactly what you want
[/quote]
yes, but it was to answer the request (“Python” in the topic title)
You want to delete the first 2 levels or flat the L3 level ?