Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Pixelab on January 07, 2016, 04:04:40 PM

Title: Random disribution in Y of multiple width elements (Array 2S)
Post by: Pixelab on January 07, 2016, 04:04:40 PM
I'd like to make parquet floor with these constraints :

Board length : between 3200 & 4200 mm (not a problem, 3200 mm  + random scale in Y between 100 & 135)

Board width : random between either 272 mm / 302 mm / 332 mm

The problem is that the randomize operator randomize "by element" thus randomizing in X & Y. But I want of course that all the elements with the same Y index have the same width...

I tried to modify the library parquet floor with no luck (even without doing the first X counter half length board) I'm sure the solution is really simple though ! (and pretty sure I've read somthing similar here but can't find the post either)



PS : To illustrate my need, The Vals Spa walls by Peter Zumthor are based on the same principle

(http://static.panoramio.com/photos/large/21132272.jpg)
Title: Re: Random disribution in Y of multiple width elements (Array 2S)
Post by: Paul Roberts on January 07, 2016, 04:34:38 PM
Hi,

You should find the Random number parameter node will help you with this. It allows you to specify precisely when a random number is generated from either: at the start; for each segment; for each X Spline; for each X Spline section; or for each row on the Y axis. In this case it's the latter you want.

You could then wire this parameter to either the exported Fixed Size or Scale inputs of a Transform operator, or if you wish to use it to select segments you can use it wired to the Index of a Selector operator as shown below.

(http://i.imgur.com/v0ySRJ0.png)

I hope that helps, please let me know if you need anything further.

Cheers!

Paul
Title: Re: Random disribution in Y of multiple width elements (Array 2S)
Post by: Pixelab on January 07, 2016, 05:01:41 PM
I knew it was simple !

Thanks a lot Paul !
Title: Re: Random disribution in Y of multiple width elements (Array 2S)
Post by: Paul Roberts on January 07, 2016, 06:21:07 PM
No problem, glad it helped  :)