Maxscript Isolate By Material

here is my first new maxscript. Nothing fancy but i believe it's a simple useful tool. This tool helps the user to pick and object then by clicking all objects sharing the same material will remain in the scene, others will be hidden. Also if the selected object doesn't have any material applied to it a dialog box will popup telling the user this and giving him/her the choice to click YES and isolate all objects with no materials applied to them.

Maxscript_isolate_by_material.rar1.48 KB