Find maximum value in data tree and obtain its branch path and list index

Hello,

Sounds trivial but i cant find a proper way how to do this.
I need to obtain branch path and member index for a maximum value in whole data tree.

I tried with member index matching maximum (from flattenned list) but it only retrieves member index and not branch path.

I basically need to localize (path + index) my maximum in whole data tree.

Thanks for help.

Find maximum value in data tree and obtain its branch path and list index.gh (11.6 KB)

thank you. it is not super trivial after all. this little script could potentially result on one component :slight_smile: