Question about Clean MultiMaterial Utility


#1

Hello,

I am fairly new to maxscript and 3DS Max in general, so forgive me if this is a silly question. But, on the 3DS Max help page for the Clean MultiMaterial Utility located here:

It says that the tool “parses Multi/Sub-Object materials and displays any that contain sub-materials are not assigned to any material IDs in the scene”. That is fine, and it seems to work well, but my issue is with larger scenes. For the scenes that I am trying to process, some of them have 1000+ materials in them, and this is largely because of the multimaterials that contain sub-materials that are not in use.
My issue is that when I try to call the Clean MultiMaterial Utility from either the menu in the slate material editor or from script using: “MMClean.fixAll prompt:false” the Clean Multi-Materials dialog that shows detected unused multi-materials is blank. This remains blank for at least a few minutes, and then finally if I execute the tool again, the dialog becomes populated with the multi materials that I want to clean up. I am guessing that it is taking so long because it is parsing through the thousand materials.
My question is two-fold:
-Is the tool actually using this time to parse through the materials? and if so, is there a way to monitor it? because it seems to do everything in the background quietly.
-By script. is there a way to manually execute the parsing this tool does, and pause execution of my script until the parser finishes? That way I can call “MMClean.fixAll prompt:false” with actual results?

Thanks