Friday, January 21, 2011

Photo Metric Light Setup 0.1.2 (maya script)

Ok, so here’s what I’ve come-up with recently, This script can be used, to generate a simple Photo Metric Light Setup.

Download Here (CreativeCrash)

It 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 on fetching th newly created areaLight-name in a variable. (THIS IS FIXED ;)

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: I’ve done changes to make it work everytime-and-everywhere with Existing Lights (with Maya 2011+ ). So everything's perfect now.

And if CreativeCrash ditches you, check this link: http://area.autodesk.com/forum/autodesk-maya/mel/photometric-light-creation/

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/


And CreativeCrash link is working perfectly. Finally they approved the file ;)