***** ATTENTION *****
I just moved this script to Creative Crash because it’s easier to manage and keep track of there.
Here is the link to the script on Creative Crash:
http://www.creativecrash.com/maya/downloads/scripts-plugins/lighting/c/jjj_gammatools
NEW - v2.0 features Vray support!
I just finished up the first part of a set of tools I'm writing to help myself automate some annoying tasks in Maya related to Linear Workflows and such. The first of these tools is a gamma correction tool. I thought I'd share it here since I often see others asking for such a tool. There are some other nice gamma correction tools out there, but this one does some neat things that I like. Following are a list of the key features that make this one kind of nifty:
*********************************************************************
KEY FEATURES:
1) Ability to choose either gammaCorrect OR mipGammaGain node.
2) Supports automated gamma correction of COLOR SWATCHES in ONE CLICK!!
3) Allows you to choose a mode of operation:
For instance, if you ONLY want to gamma correct inputs that have file textures
attached but NOT any of your color swatches, you can do that!
OR...if you only want to gamma correct inputs that are color swatches but leave
your file textures untouched, you can do that too!
OR...if you want to gamma correct BOTH color swatches AND file texutres at the
exact same time...you can do that as well!!
4) Fully supports the following mental ray shaders:
1) mia_material (all versions)
2) car_paint_phen (all versions)
3) mi_metallic_paint (all versions)
4) miss_fast_skin_shader (all versions)
5) Special 'Direct Select' mode for handling special case scenarios. (described below)
6) Allows you to undo gamma correction operations and restores
all connections and color swatches back to normal!
7) Automatically turns off 'screen composite' on your miss_fast_skin_shaders when you
gamma correct them (one less annoying button to remember to click...I like that)!
8) Gamma corrects the translucency color of the mia_material IF that attribute is turned on!
**********************************************************************
Eventually I'm sure the guys at Autodesk will have this linear workflow issue nailed down in 2011 and there will be no need for such tools. But for now I still use 2008 and do things old school. Just in case anyone else out there still likes to do things old-school I thought I'd try and help out and share. :)
I'm still developing this set of tools so if anyone has suggestions on the UI or functionality I'm all ears. I'll try and incorporate any suggestions if it makes things easier. I like easy. Also, as I continue to develop the rest of the tools I'll keep updating this post with the latest version and features just in case anyone would like to use them.
I've tested the heck out of this thing and it should not break any of your connections. But just to be safe, go ahead and test on a test scene first to make sure and let me know of any bugs.
Let me know if it helps!
