Itoo Software Forum

Author Topic: identical random rotation for 2 segments  (Read 412 times)

eqko

  • Newbie
  • *
  • Posts: 40
identical random rotation for 2 segments
« 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 ?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: identical random rotation for 2 segments
« Reply #1 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.



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

Many Thanks,

Paul
Paul Roberts
iToo Software

eqko

  • Newbie
  • *
  • Posts: 40
Re: identical random rotation for 2 segments
« Reply #2 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.