Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: eqko on December 21, 2016, 12:18:16 PM

Title: identical random rotation for 2 segments
Post by: eqko on December 21, 2016, 12:18:16 PM
say I have a segment that's a cord.
say I have a segment that's the lights on above cord.
both are plugged in their own Linear1S evenly (so the lights appear to be attached to the cord)

is there any way I can got both those segments to have an identical random rotation over z ?
Title: Re: identical random rotation for 2 segments
Post by: Paul Roberts on December 21, 2016, 05:24:20 PM
Hi,

To get the same rotation for two segments they would need to be used in the same generator and combined with a Compose operator. You can see an example of this in the attached file. To align the segment's correctly I've reduced the X Fixed Size as low as I can and disabled Scale Segment. The Compose node is then wired to a Transform node which has the Z Rotation property exported. This is wired to a random number generator set to generate a new value per segment.

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

I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Title: Re: identical random rotation for 2 segments
Post by: eqko on December 21, 2016, 06:36:27 PM
I was all trying to show you that didn't work until I noticed the Random Operator piping into the Fixed Z Rotation ....

very nice ... I love all these little nuggets of wisdom.