View Full Version : I Need a Script to Create a Star field

03 March 2006, 06:01 AM
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.


03 March 2006, 12:10 PM
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

03 March 2006, 12:58 AM
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.

CGTalk Moderation
03 March 2006, 12:58 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.