Itoo Software Forum

Author Topic: Random disribution in Y of multiple width elements (Array 2S)  (Read 1408 times)

Pixelab

  • Jr. Member
  • **
  • Posts: 83
  • Suave mari magno
    • pixelab.be
Random disribution in Y of multiple width elements (Array 2S)
« 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

« Last Edit: January 07, 2016, 09:06:07 PM by Pixelab »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Random disribution in Y of multiple width elements (Array 2S)
« Reply #1 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.



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

Cheers!

Paul
Paul Roberts
iToo Software

Pixelab

  • Jr. Member
  • **
  • Posts: 83
  • Suave mari magno
    • pixelab.be
Re: Random disribution in Y of multiple width elements (Array 2S)
« Reply #2 on: January 07, 2016, 05:01:41 PM »
I knew it was simple !

Thanks a lot Paul !

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Random disribution in Y of multiple width elements (Array 2S)
« Reply #3 on: January 07, 2016, 06:21:07 PM »
No problem, glad it helped  :)
Paul Roberts
iToo Software