Being nearly fully operational for 2.80, I have been thinking about how to adjust from fixed layers to collections. A long time ago, an option was added so you would only export objects on selected layers. That meant you could have more things in the blend than actually got exported. In the last year, someone also PR’ed the ability to only export items which were also selected. This very marginal enhancement required adding code in multiple spots.
With layers gone, I really think all these different ways are un-neccessary. In the outliner, for each item, there are 2 toggles. An “eye” for visibility & a cursor for selectablity. In 2.79 exporter, they set visibility & enabled, respectfully, Close to the same thing.
I am thinking of just re-purposing the eye to be whether it gets exported or not. If you can see it in the 3D window, then it’s going out. Any UI controls & code for this would get ripped out. In the example below, collection1 would get exported minus the camera, and the “Cube” mesh would get exported as disabled. This seems simple enough, yet allow everything prior, except an invisible mesh to be exported.
Not coding on New Years, but very soon unless a major objection.