Hello :) I found this great answer by @Kuboå regarding deforming along multiple curves at the same time. [https://blender.stackexchange.com/a/282932/146028] And I was wondering if there was a way to automatically adapt the size of the deformed geometry on each disconnected spline.
Following the previous method, I'm generating an array of object, then I deform them along the curves, even if they are detached. the problem now is that the length of the array is fixed and doesn't adjust according the the spline length. I end up having a "compression" of the array on the shorter segments.(which is great if we want to do an accordion ^^) I want them to have all the same visual spacing. Based on the longest one maybe.
I'm not totally familiar with domain manipulation but do you think this is the direction to dig toward? I've been trying for so long all kind of combination of nodes without success.. I'm wondering if it's even possible with the current nodes.. Or perhaps I just missed a very obvious solution ^^
I basically delete the parts of the array that are longer then the spline. And tweak the spline factor during the deform. It kind of work but it doesn't feel very clean. Any idea how for another method?
Edit 2: With the solution @shmuel propose, I put the duplicate elements before the arraying. I had to rework the array method to avoid any realize instances. The array take the current length for each spline but now I'm struggling connecting it back to a working deformer. I'm not sure how to properly control the factor of the curve sample to get the deform information. Any ideas?
Edit: added new image and blend file. Edit 2: Find a temporary solution Edit 3: Update with shmuel solution