Replace Different Items in Different Tree Branches

I am trying to do a replace item of different items that are also located in different tree paths. I selected specific items using Split Tree and I moved them in Y direction and now I’m trying to replace them but a simple replace Item does not seem to work.

replace different items in different tree paths.gh (10.7 KB)

Replace Itemswon’t take the same splitting masks for Split Tree. It needs item indicies as “i” input.

Try Replace Members instead.

replace different items in different tree paths_re.gh (11.4 KB)

Thanks a lot!