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.
** This latest version disables (locks) the attributes of the base Maya area light that are not used **
Creating a Photometric light in Maya is unnecessarily complex. There are quite a few steps and that process can get old real quick. This script will create the whole setup in just one click.
This creates an Area Light and converts it into a spherical shaped mental ray Area Light (but you can make whatever changes you want after its created) and it attaches an mia_photometric_light node to the light shader and photon shader and sets it up for 139cd intensity (100 watt light bulb). It assumes your units are set to centimeters (Maya default). To soften the shadows you must adjust the scale of the Transform node.
It is recommended to use an exposure control when using the mia_photometric_light node because it always uses an inverse square (quadratic) decay rate.
10/2/2012 -- UPDATE: Autodesk has reportedly fixed the soft shadows and caustic photons bugs for mia_photometric_light in the lastest update for Maya 2013!