Hmmmm…are you saying that if you change the color of one of the color swatches from the default color to a different color, say blue, then the script will not work? Or are you saying that after you run the script you can no longer make changes to the default color swatch?
New Gamma Correction Tool!
Thanks so much for writing this amazing script! I’ve been promoting it for awhile now. ![]()
Not a problem.
Glad it’s been helping out. Hard to believe that 2 years later we still need to use a script like this in Maya. When I first wrote it, I thought it would be rendered obsolete almost immediately by Maya’s color management system. Well…I see just how wrong I was about that and I’m glad now that I decided to write it anyways.
Don’t want this to get locked just yet since there’s still a use for it. Plus I may have one more update in a little while and want to be able to let people here know about it. 
Great tool - use it all the time. Updates are appreciated, thank you for maintaining this for us!
-Nick
1.) Added support for MILA shaders.
Started doing basic tests where i only used color swatches and got tired of gamma correcting them real quick. lol.
I don’t think I introduced any bugs but I did go mucking around a bit so it’s possible. Let me know if you find any and I’ll get it fixed.
Thanks!
-Justin
- Fixed a bug I introduced in v2.1 that wouldn’t update file textures anymore.
Anyone who downloaded the last one please re-download or your file textures won’t update. Sorry about that, don’t know how I missed that one. Was too hasty with my confidence in my edits. That’ll learn me. 
Sweet tool man!
Although I notice two things.
-
It didn’t seem to add a gammaCorrect node between a ramp shader and a vrayMtl (that was referenced into the scene).
-
If you press the Update all shaders twice, the whole scene gets double gamma corrected. Maybe there is a way to already detect that a gammaCorrect node has been addded so it skips over? I’m not sure.
At any rate, great tool and thanks for sharing.
Thanks! Glad it’s helped out.
- It didn’t seem to add a gammaCorrect node between a ramp shader and a vrayMtl (that was referenced into the scene).
Interesting…that should work. I’ll test it this weekend.
- If you press the Update all shaders twice, the whole scene gets double gamma corrected. Maybe there is a way to already detect that a gammaCorrect node has been addded so it skips over? I’m not sure.
This should definitely not be happening. I put checks in there to prevent that. Has not been doing that on my end. If I can reproduce the problem I can find out what’s wrong. But it’s not doing that on my end thus far.
I have just recently learned about working linearly, and I’m just wondering how relevant this tool still is. I am using 2013 and 2014, and I guess the only issue with these versions is the colour swatches, since we now have the colour management input and output profiles for textures and stuff. So basically I am asking is this tool still useful in 2013/14 for gamma correcting maya’s swatches?
edit: maybe it would have been good to read some of the posts before posting. sounds like you just updated it, but my question still stands, is it only useful for maya’s swatches now?
For the most part. Depends on how you like to work. If you want to use Maya’s color management then yes, you put it in ‘color swatches only’ mode and use it to automate the correction of all the swatches maya’s color management won’t correct.
Hope that helps.
-Justin
Doh! You’re right. It did not used to do this but I was mucking around in parts I hadn’t touched in a while, bad idea usually. One simple little mistake broke it. lol.
Thanks for pointing it out! I’ll check on the Vray issue as well.
-Justin
I’ll give it a crack and report back if anything else pops up. Good script. Thanks again. 
Been using it for a few days and aside from that double correcting bug, everything seems great. Thanks for making this!
Not a problem. That should be fixed now. Didn’t used to do that. Temporary bug I introduced changing the way a couple things worked.
Let me know if you notice anything else.
-Justin
Not a problem. Glad it’s helped you out!
Still need to check on the vray thing. I don’t have it installed anymore. I’ll have to go get the trial again. Is that still happening for you? Seems to work with the mia just fine.
-Justin
Hey man,
I just started to tackle the whole linear workflow bit in Maya 2014 and I ended up here after some research on making my life easier while gamma correcting everything.
So, first of all, thanks a lot! I tried it whilst half way through doing everything manually on my project, and I was doing exactly the same thing, which I guess is not surprising. I do have a couple of questions/ideas for you:
-
I see that the script doesn’t apply the gamma correction node if values are == 1 && == 0. Does it have some kind of threshold(as in: ignore if value >= 0,995) or is it simply for full integers?
-
While doing it by hand, for the sake of full control I added a multiply divide node with this settings:
Mode = divide
Input 1 = 1,1,1
Input 2 = 2.2, 2.2, 2.2
Then I linked the output to each gamma node’s gamma input. If you do this you can always revert to uncorrected gamma swatches by simply editing the multiplyDivide node.
If you added this, it would be really appreciated
Cheerio and thanks again!