Newton’s Cradle with Python

I made a fridge magnet Newton’s Cradle! The Newton’s cradle is fully made with Python codes including assigning the shaders. After running the code, it will create Newton’s cradle that includes animations. The user can change the number of balls, the length of the string, the radius of the balls, the speed, and the range of the animation. I am responsible for creating the scene and everything on the fridge. The scene was rendered in Arnold.