I have never used before a railspline in a sweep-object … so here is how it works.
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_01.jpg)
This is a sweep object with a regular profile-spline and a spline for the extrusion and its deformed because the profile rectangle is trying to get along with the b-spline and it looks kind of messy . thats because the points of the b-spline are not in an axis aligned, see the screenshot below.
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_02.jpg)
now comes the rail-spline. it´s a copy of the b-spline. it can be some other splines as well, but i want to keep shape and size of the original splines.
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_03.jpg)
with the option “use-rail-scale” in the sweep-object-attribute you can transform the witdth/height of the profile-spline, see screenshot below. Move the Rail-Spline left or right and transform the sweep-object.
if you deactivet the option and only use “rail-direction” the profile-spline keeps its size but the sweep object isn´t messed up with rotation and so on. the railspline gives you control over the direction.
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_04.jpg)
rail-scale on (above)
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_05.jpg)
rail-scalce off
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_06.jpg)
![](http://stefaneder.at/wp-content/uploads/2018/03/sweep_rail_c4d_08.jpg)