Hello, how do you solve the one path tree issue when there is a one selected path from tree and You need to know it’s index?
For one geometry I have in the input few paths (and then my solution works fine) but for some others I have just one path - and then my path is always [0;X]
I need to know and there flattering and surify don’t work.
could you please go a couple of steps back in your definition, and try to explain the very final goal you are trying to achieve by isolating those paths?
Thank You for answer @ftzuk
yes I am looking for the index of path (not index of an item).
The thing is how to find just one number (without 0) when there is just one path - the script works parametrically for different inputs and in general Deconstruct Path works perfectly but not in the case when there is just one path as an input.
If I would cull 0 values of indices the script will not name me the first item from input list
The goal is to rename boxes based of the intersection with hatches from inserted pdfs into Rhino. Works fine if there are a few boxes laying on one type of hatch.
But for some hatches I have just one box laying on a hatch (surfaces in attached script) and then both the naming and separating the right branch with box (here taking only 10, not 0 and 10) generate issues.
I don’t have idea how to make uniform solution for both situations - many box (many paths) and for just one box as an input (one path in data tree).