ITOOSOFT Forum

Author Topic: combining sequence and random segments  (Read 124 times)

tzaar

  • Newbie
  • *
  • Posts: 6
combining sequence and random segments
« on: July 07, 2025, 12:01:54 pm »
Hi!

Is it possible to start with a specific sequence of segments on a spline, and then have the rest of it be random segments? For as long as the spline goes on?
I'm using evenly to distribute my segments on a linear generator.

Michal Karmazín

  • ITOOSOFT
  • Hero Member
  • *****
  • Posts: 3031
Re: combining sequence and random segments
« Reply #1 on: July 07, 2025, 12:27:25 pm »
Hi,

Yes, absolutely - there are several ways to achieve the desired setup. Probably the simplest approach is to use a Compose Operator in Sequence mode connected to the Start input of the generator, and a Randomize Operator wired to the Default input. I hope that helps.

Best regards,

tzaar

  • Newbie
  • *
  • Posts: 6
Re: combining sequence and random segments
« Reply #2 on: Today at 11:36:50 am »
Yes, it work. Thank you! But when I use start or default I cannot cancel out the local rotation like you helped me with in my previous post. They just seem to follow the spline in default mode, but in evenly they do. Any new work around to get all the segments (products) facing the same direction? Or how to get the sequence + random working with evenly?

It's not the end of the work if it doesn't I just have to make up a really long sequence my self then.

Michal Karmazín

  • ITOOSOFT
  • Hero Member
  • *****
  • Posts: 3031
Re: combining sequence and random segments
« Reply #3 on: Today at 11:49:29 am »
The previously mentioned style setup should work for these inputs as well - just make sure that the Transform Operator with Z Fixed Rotation is correctly wired between them. You can easily copy the operator by dragging it while holding the Shift key. If you run into any issues, feel free to send us your scene and we’ll be happy to take a look.

Best regards,

tzaar

  • Newbie
  • *
  • Posts: 6
Re: combining sequence and random segments
« Reply #4 on: Today at 05:14:11 pm »
Gave it some more tries now and it seems that my test scene with just boxes and teapots for segments and a squiggly test spline was hard for RC.

Sharp turns in relation to the segment size seems to produce situations where the rotations "flips out". But just a bit of curvature makes it not completely aligned to the same orientation.
It's maybe mathematically correct, but not the expected result from a user perspective (the same global rotation for every segment). Good news is that with a long smooth spline, results seem better so far, and this is more similar to my actual use case. Will try with my acctual production scene and get back with my result.

Attached a screenshot and also my scene if anyone wants to have a look :)


tzaar

  • Newbie
  • *
  • Posts: 6
Re: combining sequence and random segments
« Reply #5 on: Today at 05:14:48 pm »
missed the screenshot