Project 6
Python Scripting | April 18, 2019
Python Scripting | April 18, 2019
For this project, I wrote a Python script to create a domino arrangement based on an image that the user uploads. Everything is done by the script, including keyframed camera movement, creating lights, and playblasting.
I created an options window that allows the user to choose a new image, playblast the current image, or quit Maya
The lighting used for the animations is a spotlight with a large cone angle. I also toggled on ambient occlusion and depth map shadows for more realism and object clarity in the final playblasts. Finding the command to turn on ambient occlusion took a lot of digging, but finding the command to turn off default lighting was even more difficult.
All domino formations are eighty dominoes wide, with height varying based on aspect ratio of the uploaded image. The camera position keyframes take image size into account, so each animation starts with a side view of the dominoes at the very top of the formation, and ends with the entirety of the formation in view.
Header: http://gallery.wacom.com/gallery/71122683/Captain-Marvel-Logo-Designs-Vector-Art-Diron-Polson
Captain Marvel: https://twitter.com/marvelstudios/status/1071483548916310016 (I used a cropped version of the image from a different source, but here is the original)
Click on the stills below for their respective links