Temporary replace proxy materials.

Hi folks.
What is the way to replace the proxy materials?
I need to do some clay renders so need to switch over to default vray material for all proxies, then back again for renders.

Cheers.

If you have many many shaders, I would write a small script. But in essence what you need is to insert a switch material to your end connection of the proxy. So if you have your main material connected, you would connect that material to switch material, and that output of the switch material would then be applied to the proxy. For the switch material I would add a second material (clay material). Then use the built in material switch value to switch to the next material.
If you have hundreds of shaders you would need a script that replaces the connection for each material with a switch material, but the grey (clay material) can just be one for all of them.

OK will try and have a go at this, I did try adding a material override to the VRayPluginNodeMtl but you have to manually switch each proxy.
If there is a script to turn off and on “Enable All Overrides” this would do it for me.

Now how do you find that script?

Just realised that proxies do work with render layers with material override set to the collection. Job done