Itoo Software Forum

Author Topic: Array 2S1 roof problem.  (Read 456 times)

Joker1979

  • Newbie
  • *
  • Posts: 43
Array 2S1 roof problem.
« on: July 25, 2022, 02:40:15 PM »
Hi, this time I have this question, I have laid a roofing but I want to add variety to it using stepped rotation of 90 degrees but I don't know how to make it so that on the next new spline there is a random rotation of 90 degrees, I send images of what I want to get and a working file. I mean whether it is possible to rotate random Z rotation in the generator and how to do it .
« Last Edit: July 25, 2022, 03:25:42 PM by Joker1979 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2828
Re: Array 2S1 roof problem.
« Reply #1 on: July 26, 2022, 04:42:50 PM »
Hi,

Thanks for the question. It's not possible to randomise Generator properties unless they are nested. In the attached solution I've nested the roof in a second A2S generator which makes it possible to use the randomise node in the Z Rotation input.

We also need the nested generator to only create the geometry for each specific closed spline in turn when it is selected. Otherwise each sub spline would use the whole roof are due to the nesting. To do this you will see I am using some logic nodes. Basically, this turns on geometry only for the current sub-spline when it is picked by the master generator.



It's rather hard to explain, but it's an interesting case so I might explain it in this weeks YouTube livestream if you have no objections.

All the best,
Paul
Paul Roberts
iToo Software

Joker1979

  • Newbie
  • *
  • Posts: 43
Re: Array 2S1 roof problem.
« Reply #2 on: July 27, 2022, 08:11:31 AM »
Thank you for solving this problem, I would love to hear it on your livestream. Best regards :)