Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: IvanK on March 21, 2020, 01:42:19 PM

Title: How to randomize 4 segments in sequence on X with no visible repetition?
Post by: IvanK on March 21, 2020, 01:42:19 PM
Hi, maybe it's has a very simple solution:

I have 4 segments connected to the sequence node. I thought to randomize not just the counter, but also the counter position because I need to get a long sequence with no visible repetition. But I can't find how

Title: Re: How to randomize 4 segments in sequence on X with no visible repetition?
Post by: Rokas on March 23, 2020, 09:41:02 AM
For randomization it would be best to use Randomize  (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Randomize)node, not Sequence (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Sequence).
Also Selector  (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Selector)node with exported Index parameter works well.

(https://i.imgur.com/OLEtFr4.png)

Hope this helps.
Title: Re: How to randomize 4 segments in sequence on X with no visible repetition?
Post by: IvanK on March 24, 2020, 03:26:20 PM
Rokas, thank you very much!!!
Title: Re: How to randomize 4 segments in sequence on X with no visible repetition?
Post by: DM5847 on February 06, 2024, 12:58:08 PM
I have a follow up question to this; we are currently trying to build a facade panel system that contains 1m, 0.66m and 0.33m panels. The issue is that we want railclone to randomise the 1m panel with a 0.66+0.33 panel combi (and mirrored) so that we always have a vertical line across the facade every 1 meter. In a "random sequence" you would get 1 - (0.66+0.33) - (0.66+0.33) - 1 - 1 - (0.33+0.66) - 1 - (0.66+0.33) - etc randomly interchanging the 3 options.

I've set up a couple of sequences to create this, however when threading it through a randomize node that seems to override the sequence and just randomise the 3 panels.

Am I missing a setting that I need to turn on so that the randomize node respects the "sequence objects" its being fed?

In de image you can see that righ at the start it's a 0.66m panel with a 1m next to it. If it was following the sequence it would have to be a 0.66+0.33m setup before moving on to a 1m panel.
Title: Re: How to randomize 4 segments in sequence on X with no visible repetition?
Post by: nubo on February 08, 2024, 09:46:55 AM
@DM5847

I think it would be more suitable to use the Compose node and Reverse (or Mirror, depending on the visual effect you want to achieve) node for mirroring the sequence instead of the Sequence node.

See attached.

Przemek