--- title: "Spline Rail Object" url: "https://help.maxon.net/c4d/en-us/Content/html/OSPLINERAIL.html" section_path: "Create Menu > Deformer > Spline Rail Object" element_id: "OSPLINERAIL" command_id: "1008796" description: "This page describes the Spline Rail deformer in Cinema 4D. Up to four splines form a boundary into which geometry is fitted — squeezing, guiding and …" --- # Spline Rail Object > **Note:** **What is it about?** > > This page describes the **Spline Rail deformer** in **Cinema 4D**. Up to four splines form a boundary into which geometry is fitted — squeezing, guiding and reshaping objects along rail curves, like a cube flowing through a funnel. The Spline Rail object deforms polygon objects using up to 4 splines. These splines form a boundary into which the polygon object is fitted. ![Image: 002098.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/002098.jpg)\ Cube before Spline Rail deformation ![Image: 002099.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/002099.jpg)\ Cube after Spline Rail deformation # Example 1 ![Image: 040120.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/040120.jpg) Suppose you want to squeeze a cube (which must of course be sufficiently subdivided) through a funnel formed by 2 splines. Proceed as follows: 1. First make sure that the funnel opening is roughly the same size as the cube. The splines must not be closed (**Close Spline** option deactivated in the Attribute Manager). 2. Now create a Null object that serves as a Reference object. Rotate it so that its red (X) and blue (Z) axes are in the same plane as the splines. The blue (Z) axis should be approximately parallel to the splines. 3. Create a spline rail object and adjust its position and size approximately to the cube. In the Attribute Manager, drag the splines and the reference object into the corresponding fields(**Z Spline Left/Right** and **Reference**). Figure 3 shows this state.\ Finally, place the deformer under the cube. 4. If you now animate the Spline Rail object, the cube is squeezed to fit inside the funnel. If it does not work straight away, swap the splines under **Z Spline Left / Right**. It may also be necessary to assign negative values to **Scale Before Start** and **Scale After End**. # Example 2 [Video: 2026](https://help.maxon.net/c4d/en-us/Content/Resources/Images/2026-0_splinerail_01_.mp4) [![Image: halvar.png](https://help.maxon.net/c4d/en-us/Content/Resources/Images/halvar.png)](https://help.maxon.net/c4d/en-us/Content/Resources/Scenes/2026-0_splinerail_01_.c4d)