This script automates many of the steps in MarvinX's fantastic "Make a Planet" tutorial, with a couple of added features. There is an atmospheric haze around the planet, and there are stars on the background layer. This script does not do the IWarp step. I leave that to the individual user to make wherever they want.. Everything else is in here.
After the script is done running, you can manually adjust the hue and saturation to get the planet the color you would like. There is also an option to make the planet more earth-like (using the Land and Sea gradient on the Clouds Layer.) The sun shadow is also optional.