Change Materials by Layer scripts
by aVersionOfReality
$0+
Update: Both versions of the script are now free, and also available here.
Scripts that let you change what part of your node tree outputs on different render layers. These files accompany this tutorial video.
Post on my blog.
Blender 2.93