Delete all non-selected objects in 3dsMax scene, including hidden and frozen ones, leaving just the ones you need in the scene.
This simple script is very handy when you need to re-save only one or a few models from a complex scene, but keeping all the scene setups. It’s also good for exporting objects to external software that requires scene data from 3dsMax.