Itoo Software Forum

Author Topic: Random rotation per segment not object  (Read 146 times)

Terri Brown

  • Jr. Member
  • **
  • Posts: 79
    • Terri Brown 3D
Random rotation per segment not object
« on: April 01, 2020, 03:29:12 PM »
Hi there,

I'm posting here as I hope this may be able to help some other people too.

I have some glass fins that I have allocated to a spline...very simple. The top & bottom segments of my spline have Mat ID 1 and side segments Mat ID 2 as I had to use the IDs to rotate the side fins accordingly (90 deg). The linear array uses one default segment plugged into the start, evenly and end inputs. Simple.

Now, what I want to do is something similar to https://forum.itoosoft.com/railclone-pro-(*)/shutters-3771/msg14716/#msg14716, except that I want to rotate all the fins the same degree on the z axis, but randomise the rotation per spline segment (see jpg attached). When I do what Paul suggests in the above thread I get the individual fins rotating randomly - instead of all of them rotating as a whole per spline segment (see attached image). I hope that makes sense! I will send the file separately as it's client's property and confidential   :-X

I know there must be a simple solution here but I just can't seem to see it (ps I cant have more than 2 spline Mat IDs as those drive my initial transform).

Thanks

Dragan

  • Sr. Member
  • ****
  • Posts: 497
Re: Random rotation per segment not object
« Reply #1 on: April 01, 2020, 03:43:20 PM »
Hi
For Random Node set Generate on X Spline Selection.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1736
Re: Random rotation per segment not object
« Reply #2 on: April 01, 2020, 04:08:15 PM »
Hi,

The Random Operator should be set to the Generate on: X Spline Start (as mentioned in our on-line documentation: "it generates a new random number for each spline sub-object found in the X Spline input of the Generator").



Best regards,
« Last Edit: April 01, 2020, 04:11:27 PM by Rokas »

Terri Brown

  • Jr. Member
  • **
  • Posts: 79
    • Terri Brown 3D
Re: Random rotation per segment not object
« Reply #3 on: April 02, 2020, 09:01:47 AM »
Great, thank you. I just saw that I had randomness per segment enabled too - that's why it wasn't originally working  :-[