Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: IvanK on March 20, 2020, 07:29:53 PM
-
Hi! I can't figure out how to get the pattern:(https://i.imgur.com/wAe4TPL.jpg)
The pattern I is made of few areas distributed on Y (with or without horizontal dividers). Inside every area, a random amount of horizontal rows and every area has its own random sequence on X only.
I made the first: few areas distributed on Y with horizontal dividers, but I can't get the second: individual randomization on X sequence inside each area.
Regards, Ivan.
Attaching the max file:
https://www.dropbox.com/s/3ju79f5xp8y1r4a/RC_RandomPanels.max?dl=0
-
Hi,
Thanks for your question. This problem is a little trickier than it looks because none of the existing randomisation options quite allow for this level of control over when a random value is generated. For a workaround please see the attached file. You'll see a strange-looking expression in one of the Arithmetic nodes. This is being used to try to generate a pseudorandom number over which I had a little more control. I've written it so that it generates a new random value based on the Nested generators position on Y-axis and the individual segment's position on the X-axis
(https://i.imgur.com/XV0aAC4.jpg)
I've exported a seed value you can use too, but be aware that some number work better than others, and Prime number seems to be giving better results.
I hope that helps for now. We'll add more randomisation options to our wish list.
All the best,
Paul
-
Paul !!!! :o $#@%$#%##!!!! :D :D
I guess the formula for the Corona Vaccine will be easier to find compare to this expression!!! ;D ;D ;D
Great Job!!!
I take a look at this problem also and at my initial setup idea I run into a problem with the Selector`s Index.
I try to send random X-Sequences trough Selector to new Y-Sequence with random Counter Index but that did not work.
Please, can you check it for me? I know in theory what is the problem but can`t clarify myself.
-
Please take a look at the attached. If I've understood correctly what you wanted then seems a little more straightforward with no weird maths required!
Cheers,
Paul
-
Yup! That`s it. Thank you Paul.
Do we need some more `Generate on`modes for Random Parameter so the combination of Selector>>Sequence could work fine? Although this Nesting is just simple and fine.
And one more thing I think if Random Parameter for Selector is set to Generate on Segment it will mess up the unique X-Sequence order (but I still have to check this statement).
-
One more!!! 8)
Could it be possible for Sequence Operator to use the NULL segment? Now if I attach the NULL segment it will break/end the sequence order. This behaviour is preventing of preparing some Macros with e.g. 10 inputs but only few to be used. Now I need to make some combination of Compose inputs+NULL with small X/Y size values and this is not ideal.
Best Regards.
-
That's it. We need to control more accurately when a random number is generated. Regarding the null and sequence issue. We'll look into what can be done about that, but I would be reluctant to remove the current behaviour because I have used it many times on purpose to deliberately end the length of an array that has many segments with a different X Size.
Cheers,
Paul
-
I can agree with the use of the NULL for Sequence termination but as I can see now, NULL with X/Y size is acting well so maybe just to see if the Opposite situation could work:
NULL with some X/Y size to be used for termination and `zero` NULL for `healing/continuing` the Sequence.
Thank you.
-
Well, I may use a Null with an X/Y size to deliberately create a space in the array. But maybe a negative size could work. There is another issue though, the reason a 0 size terminates the array is because if we didn't do that it could happen that RailClone tries to fill a Spline with 0 sized segments which would create an infinite loop.
-
Understandable, so then it is about time to introduce a new NULL SEGMENT in Object section with some useful parameters ;)!
-
It's starting to look like it!
-
WOW! Thank you very much!!!!
-
Hi,
Thanks for your question. This problem is a little trickier than it looks because none of the existing randomisation options quite allow for this level of control over when a random value is generated. For a workaround please see the attached file. You'll see a strange-looking expression in one of the Arithmetic nodes. This is being used to try to generate a pseudorandom number over which I had a little more control. I've written it so that it generates a new random value based on the Nested generators position on Y-axis and the individual segment's position on the X-axis
(https://i.imgur.com/XV0aAC4.jpg)
I've exported a seed value you can use too, but be aware that some number work better than others, and Prime number seems to be giving better results.
I hope that helps for now. We'll add more randomisation options to our wish list.
All the best,
Paul
Big thanks Paul!
One more thing... is there a way to force showing only FULL panels as I make the splines for X and Y longer or shorter? No scaling of panels (which we have on X) and no Slicing of panels (which we have on Y)...
-
For this disable Segments slicing:
(https://i.imgur.com/x1hWbcu.png)
-
For this disable Segments slicing:
(https://i.imgur.com/x1hWbcu.png)
Yep! That did the work on the Y(Z) Axis ;)
Still working out the X ...
Thanks
-
Hi, I set the Generator's Default mode to Adaptive. If you change it back to Tile you should only get whole unscaled segments.
Hope that helps,
Paul