Just picking up stuff which I would find useful for myself. Try attached one, should handle the mentioned issues (category "Rakete" this time, since it's just a copy from my local script).
Good Luck
Edit: Added screen redraw, in some scenes the viewports did not update.
Frood, Thanks for your script! It doesn’t have only such a function - that after restarting the scene or max, it would save its state .. Or automatically execute the command - "Unhide All" when the scene opens. Can anyone know where to find a script that executes the command to "Unhide All" every time you open any scene? (sorry for my English)