PDA

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


stephensloan
03-07-2006, 05: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.

:bowdown:

Moosley
03-08-2006, 11:10 AM
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
)

stephensloan
03-12-2006, 11:58 PM
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

CGTalk Moderation
03-12-2006, 11:58 PM
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.