Easy one? Collapse branched list back into one if certain value

A bit embarrassing to stumble here - I performed some text find/replace and am trying to recombine all modified values back into a single list {0,0}. Undetermined unique values to initiate the text search, so I think avoiding explode/entwine is wise - I think.

What’s the last step? Or a more elegant solution? I seem to have a lot of juggled Grafts and Simplifys early on.

Thanks for looking.

pathrecombine.gh (13.7 KB)

pathrecombine Edited v0 Regex.gh (27.3 KB)
Copy the code to the Python Editor if you use R7.
The i output of my Key Value Search is index. You can use that to sort the geometries behind the names.

Thanks for looking into it! I’m sorry, I should have been clearer. The panel at right is the desired result (I just typed it into the panel directly):


Anon.gh (15.7 KB)

2 Likes

I never would have thought to use multiplication on booleans, then mass addition with flip matrixes.
Thank you!