How to use this add‐on - OlyDJ/ThreeLayerRendering GitHub Wiki
Select Focus object and camera (or leave it blank and active camera will be used instead).
Select the objects you want to split (or a collection), and press Process button. For objects with Geometry Nodes and with Instances On Points nodes in the root of the node tree, use Smart Geo Nodes option.
There are options to scale the width of Foreground area and to move and scale Focus area, that can be animated. The last option is useful if you see any glitch on Foreground area.
Once you end up splitting, enable View Layers, and press Create View Layers button. Background, Foreground and Focus View Layers will be created. You can now select any object or collection and press View Layer from Collection (or object), which will create a new one named as the collection or the active object.
By selecting any View Layer, you will be able to switch to it, or enable/disable Use for rendering. There is no need to switch between View Layers. By enabling Show View Layers Passes you will be able to enable/disable passes for selected View Layer, again without having to switch to other View Layers.
Show View Layer Collections will present you a collections list. Select the View Layer you want to change, and you can enable/disable collections, as well as make them Holdout or Indirect Only for that selected View Layer. And again, without having to switch between View Layers.
Thats all!