Setting Up Render Passes in Maya Automatically

maya
python

#1

How would one set render passes in a script, including getting variances for each pass? I need a certain set of them for a post-process and getting variances is a little tricky so I don’t want the artist to have to do it.

Thanks
Chris