RailClone Slicer
This script allows you to slice an existing mesh into segments ready to be used by RailClone's 1D or 2D Arrays. It does this by adding and controlling a number of slice modifiers, then automatically cloning and splitting the mesh to create a number of segments. To use it:
- Run the script and then pick the object from the scene.
- Activate the checkboxes to turn on the segments you wish to create and adjust the slice points using the position parameters. If you're using an L1S generator you only need to use the settings in the L1S/Columns group. If you're using an A2S generator you'll need at least one option checked in each of the Columns and Rows groups. It's not possible to use the Rows group on its own.
- To get an idea of what is being slice, you'll need edged faces on, as it only shows one slice plane at the top of the modifier stack. (I had an idea about temporarily adding spline rectangles to mark the slices, but I haven't got around to it yet)
- When your cuts are in the right places, press Slice Geometry to create the segments
- Finally, if you'd like to remove the Slice modifiers from the original geometry, press the C button.
The script resets the pivots by adding an XForm operator to the geometry when it is picked, so you need to ensure it is aligned correctly in relation to the world coords. Remember the L1S generator uses the X Axis to build the Array and A2S use the X and Y. Even if your final style will be oriented differently, for example a vertical wall style, the segment's pivots will still need to be oriented to these axes.

You can read more about this
here.
I have included a global size parameter for the Row's height. If you turn this off you can adjust the size of each row independently but be aware of the fact that the height of each row will always be determined by its
largest segment.
If you would rather position the slice planes manually, just pick and adjust them from the modifier stack, the segments should still be created correctly when you click
Slice Geometry.
Hope someone finds it handy!
Many thanks,
Paul