Python Scripting
Project 5
April 28, 2022
Playblast with Image Texture
Rendered (Maya Software) Version
Design & Description
I used MASH to create the grid of dominos. I created a MASH_Dynamics node to apply physics to the objects, and a MASH_Color node to apply the image texture. The python script prompts the user for an image. The image in the videos above are of the W&M cypher:
I chose this image specifically because it isn't too detailed, and it can be recognized in the domino grid. We can use other images, though they might look overly pixilated.
The scene is set on a plane on a polyCube. There are two planes to provide backdrop. I alternated between using an ambient light and directional light for the videos above. My final code uses ambient light. My perspective camera moves according to set keyframes.
The first row of dominos is knocked over by a hidden cylinder that spans the length of the row.
The playblast is automatically set and played when the script is run.