Thanks for solving this one Rokas. I'd already started replying so I'll post my version anyway
in the attached style I've used a similar approach to Rokas. Though I've assumed that the geometry is randomised to add some variation while the material is kept consistent for each spline.
To achieve this the curtain segments are wired to a Randomise
operator. This is then attached to a Selector
operator along with an "empty" segment to create the occasional curtain-less windows. To control probability I've just added the curtains to the Selector operator multiple times:
for the Selector operator has been exported and wired to a Random Number
node. This is set so that it generates a new random number for each spline. The same approach is used for the Material
Operator to ensure the same material is used for all curtains on the same spline.
The curtains are applied to the Start
inputs and their width is calculated by dividing the length of the current spline in half using this Expression: (XSplineLength/2)-Input1
Input1 in this case is another random value used to create different size gaps between the curtains. This is achieved by wiring this value to the X Fixed Size
input of a Transform
operator. Increasing the upper limit of the random values will increase the size of the gap.
I hope this explanation and the attached file is of some help. Please let us know if you have further questions.