MoI discussion forum
MoI discussion forum

Full Version: Random positions and size script

From: Matadem
3 Dec 2025   [#1]
Good day.
Looking to make a random pattern with different size....something like the 95 Acer aspire pc.
They had a random pattern of holes at the case and monitor https://dn790007.ca.archive.org/0/items/ACERSRCCD/Acer%20Aspire%20%281996%29%20Windows%2095.jpg

Is there something like this in Moi?

Tnx!
From: Michael Gibson
3 Dec 2025   [#2] In reply to [#1]
Hi Matadem, there is a randomize script here:
https://moi3d.com/forum/index.php?webtag=MOI&msg=5416.5

But the result you show in the Acer picture doesn't look like it's just randomizing position, it's randomizing position while at the same time not letting the shapes to intersect with each other.

That's a fairly different and more complex process than just randomization alone.

- Michael
From: Matadem
3 Dec 2025   [#3]
What you have posted is good enough and I can accomplish what is needed.

Thank you!
From: Phiro
3 Dec 2025   [#4]
Hi Matadem,

This video could help you on how to do something near of what you wanted.

https://www.youtube.com/watch?v=QHEQuoIKgNE&t=474s
This youtube channel "Coding train" is very interesting