Notifications
Clear all

[Closed] Scripting a Planet and Star

the idea of this snippet is to show that most of ‘looking complicated’ tasks are not really complicated. as you see whole math is 6 lines of code. everything else is UI.

Awesome Denis!

Now for your coup-de-gras… how about a binary star system– where the two stars orbit each other.

interesting… there is a super bug (really fat) in my code… nobody cares?

2 Replies
(@archangel35757)
Joined: 11 months ago

Posts: 0

At my regular day job now (no 3ds Max)… but I’ll see if I can spot it when I get home and run your script… I’ll try and study it more closely before then. Thanks for taking the time to enlighten us beginners.

EDIT: Is this a maxscript coding flaw? Or is it something in the design concept of the script (e.g., a planet could have more than one satellite…)???

(@archangel35757)
Joined: 11 months ago

Posts: 0

…well, I copy/pasted your orbitAttribute script into a new script file and evaluated it and the attached picture is what I got… so at first glance I’d say the orbit of the satellite (moon) needs to be tweaked– but I’m sure you did this on purpose… taking a closer look at the satellite– hey, wait a minute! That’s no moon! Maybe that explains it!

Page 2 / 2