How to find idexes of points in nested list


#1

Hello, I am having trouble finding the indexes of points that I sorted. I want to get the indexes so I can sort the cooresponding rectangles that correspond to these indexes. Any one know how to do it?


#2

I think you just need to use list levels and switch your inputs.


#3

is this the same question as here?

if so, does this then solve your question?


#4

@erfajo So am I reading this correctly, that each number in each sublist corresponds to the “parent” list that the item is found in, with the last index in each sublist being the actual item that I am looking for in that list?
like this:


#5

correct :slight_smile:


#6

Do you have a node that works with this IndexOf node that will replace items or Get items at these index locations, defined by this list structure?


#7

that is a good idea, i will try to make that node… as soon as i get some spare time :slight_smile:


#8

Here you go… a new node for replacing items at indices (full path).

Besides, I have also uploaded a major update of the DanEDU Dynamo package, among others a new look and all nodes are totally recoded.

searchRecursive.dyn (10.1 KB)