We are facing exactly the same problem in 2018.4...
Before anyone suggests to delete the ENU folder - THIS IS NOT A SOLUTION, it doesn't work.
We think that the file crashed at some point, and the modeler worked from the auto-saved file that was generated when the crash occurred.
We're facing various issues now:
- We don't see any layers in the Layer Explorer (LE)
- None of the scene content can be moved/assigned to new layers
- New layers only accept new objects, not any of the existing scene content
- saving as older max versions (2016, 2017) or opening the file in 2019 doesn't help, exactly the same problems
- your default 'delete ENU folder' advice doesn't help (sidenote - support reps are way too fast suggesting this, that's not what I'd consider good support).
HOWEVER, the short script posted above works (thanks for that @Anonymous ). When using the script, scene geometry is back to 'normal' it seems, adding to layers, moving/nesting layers is possible again. The only problem is the file had 50+ layers and we can't tell anymore which objects are valid or not, and many objects are inaccessible and won't show up even when using 'Unhide All'. Also, I'm not sure we get 100% of scene content back this way.
@ Support:
- any other way to restore layer information?
- any way to access 'the' broken data and make it visible in LE, even if corrupted?
- please forward this to the developers and make sure layer information can be accesses/restored/reset and the commands are exposed to the UI somewhere
Thanks for any pointers!