Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The purpose of this script is to automate the process of creating a custom render pass in Maya 2009.
For each material selected, this script will create a writeTo Node (either color, depth, label, or vector), and connect the outColor of the material to the evaluationPassThrough. It will also change the Custom Pass field of the writeTo node to the pass you specify, and also connect a material that you specify to the color input.
In the case of the depth, label, and vector passes, it will connect the outValueR, as the input for these nodes only takes one connection. I realise not all nodes you will be connecting to these buffers will use outValue, but this script was created primarily for color passes.
To run the script, source it, or type CustomPassCreator(); into the command line, or copy it to your shelf. You need to have Maya 2009, and have mental ray enabled to use this script. You should also first create your custom passes in the Passes tab of the render globals before running this script
Any suggestions or comments please feel free to contact me.
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.