Project 5- Python Scripting and Dominos, 4/28/22


For this project, I scripted a domino collision chain using MASH and Python. The full script is posted at the bottom of the webpage. The hardest part of this project was the API diving and the amount of time it took to find the proper command for a tiny part of the animation.


Here is the before-and-after image used for the domino grid. If my math is right, there should be 8100 dominos on the board.


source source

Here is the video of the dominos being knocked over. There were three minor sins committed to get the video out- I could not figure out how to edit system preferences using python, so I manually had to turn on lighting, textures, and a black background.





Source:


script to produce the conditions to make the above movie (and some unrefined playblasts)

image from the Tom and Jerry cartoon, exact moment taken from https://bharatiyavishwa.com/tom-and-jerry-meme-templates/