Anemone loop help


I do not have much experience with anemone but didn’t have any problems until now and need some help.

I will describe my problem here but i placed comments inside a file for better understanding.

What i am trying to do is to find 50% smallest intersections between a set of breps and main brep - ‘cut’ it with these. After that pass the resulting polysurface to a loop to find 50% of smallest intersections with next branch of cutting objects and so on. So each iteration ‘main brep’ is smaller and resulting 50% smallest intersections will be different.

For some reason the ‘main brep’ doesn’t seem to be passed after the first iteration.

I am pretty lost with that and would appreciate any help or advice!

Have a good one!