ALEX NEGRETE PORTFOLIO
Compositor | Pipeline TD | Visualization Designer
​
Multipass Composite Render Script
For this project, with the guidance of Thomas Meade, I was able to script and render a file that opens a UI in Maya that lets you select a background, the camera in Maya, a destination folder, a name, an output folder, and a render length to render using subprocess automatically a nuke exr sequence and spit it out as an exr multipass layer composite with automatic glow. If you want to read the code, here is the link.

The maya code.
For the first part of the code (quick_composite_lanh), the challenge was not to render the multipass but, most importantly, to grab all of the information from Maya, store it in a dictionary, and send it to Nuke through the subprocess module.
The first step was to set up the nuke file to create automatically, and most importantly, set up the location of the files and append the data dictionary from the UI to the end of it through the os module.
The UI code.
The second part (quick_composite_lanh) was to create the UI to gather all the information we desire, such as width, height, frame range, path locations, cameras, and build the UI design. I designed the UI with the Maya base code and gathered the file paths using the text field button group.
The hardest part was writing the code that automatically finds the nuke folder inside the computer. This was accomplished with a version of a directory manifest that checks and breaks down each available item on your computer until it finds nuke.

The Nuke code.

Last but not least, for nuke python code (multipass composite) was pretty straightforward except when it came to connecting the shuffle channels to their respective AOVs. The challenge was that Nuke has a bug that even though the name of each render channel is correctly stored and even labeled inside the shuffle channel, it doesn't recognize it as a channel available. So what I did was simply split the available channels into an object of the read module that will be used for the read loop.
Now that I have gone through it, and have more experience in Nuke, I bet I would like to add an organization function to organize the nodes in nuke to look pretty, and to add camera grain, and aberration to the mix.