Got tired of creating a depth of field camera in Maya over and over the long hand method.. Going through the hypershade and making all the connections. So why not have a script do it for me in the name of laziness.
Noticed that someone had created a tutorial on how to create the camera on Highend3D.com, in which they use a measure distance node to figure out the focal distance. Only thing is that when a camera with an aim constraint is created, the group node already calculates the distance so the measure distance node and the two locators were not needed. That and they are just creating more clutter. But I figured I take it a step futher since mental Rays integration into Maya 2008 & 2009 has improved greatly. So why not use mental Rays bokeh lens shader?
The script listed below does a multiple of things.
- Sets up the connections for Mayas camera DOF settings for Maya Render
- Sets up mr Bokeh shader with connection to distance
- Makes aim constraint easier to select
Once its sourced, it can be run ap_dofCamera mr for mental Ray or ap_dofCamera maya for mayas software render.
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.