What this script does, and how you can use it for your own creations: