Rainbow Helix
Python Scripting in Maya, Personal Project
2022
Used Software
Maya, Python

Project Description
In order to combine my interest in python scripting and 3D graphics, 
I created rainbow-colored simultaneously rotating groups of spheres with python code.

Goal
0. Use Maya Script Editor to create the spheres in space and control their motion.
1. Create a ring made of spheres in randomized, yet in range, location and size.
2. Assign a rainbow color to the groups of spheres
    2-1. Assign slightly different colors for each group of spheres.
3. Animate each sphere group at a slightly different speed.

Rainbow color test
Problem: each RGB Colors are too strong                                                                   Solution: Defined a function to rescale sin values from (-1, 1) to (0, 1)
Create a ring of spheres
Problem: sphere sizes were too identical within the same sphere groups             Solution: create variables to slightly randomize the radius of the spheres
Speed test
Problem: the overall look was too simple with the exactly the same speed           Solution: added an if statement to randomize the speed slightly

Final outcome