The final animation of my python script-made animation.
I opted to do the 85%-option of the project because I had very little time.
The images were rendered and put together with a video editing program called Shotcut.
I followed the 5-video tutorial directly to get a feel for the python scripting. I started with creating a polyCylinder object with 6 divisions to make it a hexagon.
Afterwards, I edited the script used in the video to create multiple instances of an object to take a certain number and create them using a loop rather than being based on user selection.
I used the script from the tutorial to aim the hexagons towards the center sphere, again modifying it so it looped through all the hexagons and applied the aim constraint, rather than selecting targets with the mouse.
I used polySphere to create a sphere and translated it up 10 units on the y-axis.
Eventually, I managed to iterate through all the hexagons and apply locators to their centers so I could give them weights and set up a move constraint between their locators and the center sphere. Again this code was gotten from the tutorial and modified with a loop instead of user selection.
I also coded in the rotation of the hexagons around the sphere, as well as their slow in and out expansion to the sphere.
I also FINALLY managed to code the colors onto all the objects using the random library in python to generate random values for R, G, and B.
Some final notes: