******* Updated to v1.2 ******
Key Features:
- Swatches will not be gamma corrected UNLESS they are
NOT pure black or white. Gets rid of useless gamma
nodes in the hypershade.
2)Additional colornow supported on all mia_materials.
3) Ambient color, incandescence, specular color, reflected color
now supported for maya shaders.
4) Bug fix for mental ray shaders: previously if you inserted
a mip_gamma_gain by hand in between a file tex and a shader and
tried to undo with the script it would throw an error.
5) Bug fix: ‘Update All’ & ‘UNDO for All’ won’t throw an error or warning.
6) Previously ONLY file textures and color swatches were supported.
Now any kind of node connected to a valid input will receive gamma
correction. i.e. 2d procedurals, 3d procedurals, etc.
7) Advanced shader setups now possible:
It attempts to be smart and NOT gamma correct things like materials,
mia_light_surfaces, amb_occlusion, etc. connected to shaders like mia_materials.
So if you’re doing an advanced set-up with a mia_material that has
a misss_fast_skin or mia_light_surface plugged into ‘additional color’,
that connection won’t be gamma corrected.
8) Screen composite set back to 1 on UNDO for misss_fast_skin shaders.
9) Extra ‘A’ connection for mental ray shaders and mip_gamma_gain now handled correctly
10) Support for maya light shaders.
Every feature suggested in this thread has now been implemented. This is the most stable version of the script yet. I went back and fixed a bunch of bugs in the previous version. I haven’t been able to get this version to throw an error or warning under any circumstance.
Thanks for all the great suggestions. I think they went a long way to making this a full-featured and comprehensive tool. If you think of any more features you’d like to see handled just let me know and I’m sure I can work them in. Or if you run into any bugs let me know about those as well and I’ll see if I can reproduce them and fix them.
Thanks,
Justin

