Horizontal truss lines

For my support design, is there any way to connect the pieces horizontally like shown in this roller coaster example? As in one horizontal connection every other support, so not every support needs a connection to one another. I would also like for the supports to be able to connect in a square shape.

rollercoasterfirstgo (1).gh (37.1 KB)

I think you can do what you are after with the path mapper component.

Grasshopper Masterclass with David Rutten - 04 - Selecting Items in Data Trees on Vimeo (vimeopro.com)