Hi, just moved to Maya 8.5, finally. I put together a little mr phenomenon based on mia_material to automatically remove gamma on input colors. Basically what I had done for Maya 7.
mia_material_rg (remove gamma) will automatically “ungamma” input colors. Gamma correction (default = 1/2.2) is adjustable, see near bottom of attributes. Color swatches and viewport colors will look normal (not “ungammaed”), the mr rendered “Sample” preview and the render itself will have input colors gamma corrected. Your render should have gamma applied (typically 2.2). Adding Physical Sun and Sky by default adds a 2.2 gamma correction to the render using mia_exposure_simple. Note that you can disable the gamma correction by setting it to 1 1 1 (will behave like regular mia_material); for example, you could set it to 1 while editing the “Sample” preview, and set it back to 0.454 for rendering.
This is a simple phenomenon but I thought I’d share in case anyone else finds it useful. Sorry for the poor packaging, I’m no shader expert, if you are not using a default Windows Maya 8.5 installation you will have to edit the includes in the .mi file and install manually. Once installed, a new mr material will appear called “mia_material_rg”, it’s exactly like mia_material except it has built in gamma correction for all input colors (not bump, transparency, etc.). This does not change or affect the original mia_material.
(Edit: updated mentalrayCustomNodeClass.mel to Maya8.5 SP1’s)