An Array on Curve of two different objects (with different dimensions) made with Geometry Nodes?

hello everyone! I think the title is relatively self-explanatory. I need to make a chain made of 2 different links with different dimensions and it’s driving me crazy!
My idea was to scatter the 2 links as collection instances on the points of a curve resampled to a specific length, but I have no idea how to achieve this result.

On this thread Geometry Nodes Resample curve Non Linear they suggest that the resample curve node can accept a field, in order to distance the points in various ways, but I didn’t understand how to get to my objective. ideally, I’d like to be able to set 2 values for the 2 different lengths that have to alternate on each point of the curve.

could someone help me, please?

2 objects along curve.blend (118.7 KB)

The resample:

The instancing:

Makes:

…only works with 2 items and with single curves… things in the instancing collection are aligned on the Y axis here… Would need a way more complicated setup to work with more than 2 items and multi-curves.

Good luck!

3 Likes

As an alternative , seems like @FrankFirsching solved it in it’s Deform Object to Curve nodegroup : https://gitlab.com/subdivided_xyz/nodes_xyz

2 Likes

sono veramente in ritardo! grazie ad entrambi per la risposta tempestiva. sfortunatamente, quella sera ero veramente di fretta, quindi ho cercato di arrangiarmi cercando una soluzione “creativa” e decisamente piu rozza.

Basically, I realized that the distance between the two assets depended solely on the distance created by the sum of the two bounding boxes

this solution ended up being more than sufficient for my needs, but I still want to thank you both for the links to the resources and the explanation of your method Zeroskilz. I definitely learned something new today.