Hi, thanks for the contacting us.
Please take a look at the attached file. I uses an expressions to find the Z position of the segment on the spline to drive the size of a nested generator. The length is actually in relation to the RailClone's position in world spave. The plane is just for illustration.
I hope it helps, please let me know if you have further questions.