Rebuild crv in z

Im trying to rebuild a crv in z directions and would like to add a sort of landing ( one segment becomes longer) every set of points (lets say every 10 segment) but I am having difficulty in this last step, this is where i get so far…

rebuild crv in z.3dm (36.3 KB) rebuild curve in Z (15.0 KB)

Moved to the Grasshopper forum.

Something like this?

rebuild curve in Z (14.2 KB)

Yes that s what I had in mind, thank you!