Notifications
Clear all

[Closed] I Need a Script to Create a Star field

I can remember back in Max 3.1 there was an example Script that created a Star field out of spheres.
I have had a good look through Max and I can’t find it.
Could anyone please point me in the right direction?
Big thanks in advance.

:bowdown:

2 Replies

Copy the following into a new script. When you run the script you simple pick an object from the scene and it will be filled with 100 ‘stars’. If you want more stars change the value of ‘100’ to however many you want. If you want to change the sphere properties then you can do so also by altering the values after ‘sphere’


(
 obj = pickObject()
 for s = 1 to 100 do sphere pos:(random obj.min obj.max) segs:2 radius:5 wirecolor:white
 )

Thank you very much for the script. It was just what I was looking for.
I ended up finding the old script that came with version 3.1.
It was great to get a reply.
Thanks again from down under.
Steve