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 script can be used, to generate a simple Photo Metric Light Setup, works 100% accurate only if there's no Other Area Light in the Scene.This limitation is due to the fact that I am still working onfetching th newly created areaLight-name in a variable.
Rest all works fine I guess, just source the script and it’ll create a setup for you. I’ll try to enhance it with UI and other stuff as and when I get time. Please check if I’ve left anything else.
EDIT: January 22, 2011: Done changes to make it work with scenes with Existing Lights. So everything's perfect now.
EDIT: January 24, 2011: (1) When it creates the light, the “Illuminates by default” option is unchecked, so the light is not active, This is fixed now. (2) It creates a new mia_exposure_simple node each time the button is pressed. It should first check and see if an expsure node already exists on a camera and if so, not create a new one. Fixed. (3) It should have been mia_exposure_photographic node instead of mia_exposure_simple. That's fixed too.
EDIT: January 31, 2011: now this scripts connects mia_exposure_photographic to all cameras in Scene/