Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Joker1979 on July 25, 2022, 02:40:15 PM

Title: Array 2S1 roof problem.
Post by: Joker1979 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 .
Title: Re: Array 2S1 roof problem.
Post by: Paul Roberts 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.

(https://i.imgur.com/SEoWcP7.gif)

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
Title: Re: Array 2S1 roof problem.
Post by: Joker1979 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 :)