Override viewport material at render time (or vice versa)?

I remember working at a company a couple of years ago where their assets had one shader applied for the viewport and another that would render. I’m not sure if this was a custom set up that they had developed, or whether it’s a standard capability within Maya/Vray. I’m looking to do the same thing -- have a utility shader applied in the viewport but then have a completely different shader used when rendering. Can anyone point me in the right direction? So far as I recall it was a simple set up within each object’s attribute editor, but I can’t see any relevant settings (though knowing Maya they are probably buried and not very intuitive). Thanks.

Probably just a material override on a render layer which can be disabled before render?

This was something other than a render override, and as described -- one shader for viewport display, another used at render time regardless of render layers. I recall there was a UI for it in the AE with I think some drag and drop slots for shaders. I can’t see anything like that, so it’s possible it was a custom tool.

A layer override is the only option in Vray/Maya.. I don’t think there’s another way.

There is the use default material button in the viewport!

That’s not what I’m looking for.

The extra Attribute on the ShadingGroup is what you are looking for.

It’s not very clear if he has only one shader in the scene or several, the extra Attribute is for a single shader, is that what you are after Sonyboy?

Thanks! This is what I couldn’t find. Not sure why I didn’t think of looking on the shading group. Doh.