MAXScript Language Reference > 3ds Max Objects > UtilityPlugin Classes >

# Clean_MultiMaterial : UtilityPlugin

The MultiMaterial Clean Utility cleans unused submaterials in scene Multi-Materials.

Constructor:

    Class instances not creatable by MAXScript

Alias:

    MMClean

## Clean_MultiMaterial Interface:

    Interface: MMClean

Methods:

    findAll <&material array>mtlsFound
    mtlsFound is Out parameter

Collects all multi-materials with unused sub-materials, stores them in MtlsFound array

    fix <&material array>mtls [prompt:bool]
    mtls is In parameter
    prompt default value: true

Removes unused sub-materials from submitted multi-materials array. if promt=true, dialog shows up.

    fixAll [prompt:bool]
    prompt default value: true

Removes all unused sub-materials from scene multi-materials. if promt=true, dialog shows up.

## Clean_MultiMaterial Interfaces:

    Interface: MMCleanActions

Methods:

    CleanMaterailsAll () -- Action Interface

CUI member

Actions:

    Category: MultiMaterial_Clean_Actions; Action: Clean__MultiMaterial; Shortcut: -- none defined --