ITOOSOFT Forum

RailClone => RailClone Pro (*) => Topic started by: mats_mono on November 06, 2025, 01:22:21 pm

Title: X/Y evenly on a 2D array
Post by: mats_mono on November 06, 2025, 01:22:21 pm
I want to create a ground cover (cobblestone) and use closed splines as a clipping area. I use "Extend X/Y size to area" to completely cover the area. So far so good.
Now, I want to use an Evenly spacing in both X and Y axis, since if I use Padding (and the Object in the Default slot) as a method of spacing the objects, the tiling soon becomes disorganized due to irregularities in the size of the distributed objects.

Setting up a basic array and plugging the object (here represented by a circle, with Padding=0) into X Evenly is the obvious solution, but how do I change the spacing in the Y axis? Plugging the same object into Y Evenly creates a mess of overlapping and/or clipping objects.
I have tried creating a row of objects as a linear array (in the X axis), then plugging that one into Y Evenly. It kind of works, but it feels like an impractical step.

I also want to be able to plug a controller and export the parameter to easily adjust the spacing in the viewport, linking the Xand Y Evenly spacing.

The setup I've used so far sets the object to X Evenly for the X spacing, then uses padding to increase the spacing in Y axis, but it feels... wrong.
Another reason why I want to be able to control X and Y evenly is that I want to use a randomizer to slightly "wobble" the stones in their Evenly Distance.

Am I missing something? Really scratching my head here.
Title: Re: X/Y evenly on a 2D array
Post by: Michal Karmazín on November 06, 2025, 02:06:47 pm
Hi,

Setting the Fixed Size for these Segments to match the desired grid, while keeping Scale Segment disabled, should do the job using only the Default Input. When the Scale Segment option is disabled, RailClone only adjusts the Segment’s “bounding box” - the space where the next or previous Segment will be placed - without modifying the geometry itself. I hope this helps.

Best regards,
Title: Re: X/Y evenly on a 2D array
Post by: mats_mono on November 06, 2025, 03:42:54 pm
Thanks for a quick reply.

Your solution solves one problem, but introduces another. In my project, I have 16 cobble stones, varying in size and proportion. Using Fixed Size makes them all the same - or, if set to their individual size*, introduces the same problem I had when using Padding: I get an increasingly disorganized pattern.

It would all be so easy if we had a parameter for the Y offset distance when using X Evenly.  8)


*Which is a real PITA to set up
Title: Re: X/Y evenly on a 2D array
Post by: Dragan on November 06, 2025, 06:44:16 pm
Uncheck "Scale Segment"

Edit: but now, I realize you want to randomly stack cobblestones and create gaps... RC is not a tool for this...