DeleteUnusedMateri als

Introduced

4.0

Description

This command deletes all the materials in the Material Library that are not currently used.

Scripting Syntax

    DeleteUnusedMaterials( [InputObjs] )

Parameters

Parameter | Type | Description
InputObjs | String | Libraries from which to delete materials. Default Value: If not specified, the user is prompted to pick one.

Examples

VBScript Example

    NewScene
    CreatePrim "Sphere", "MeshSurface"
    SetDisplayMode "Camera", "textured"
    ApplyShader , , , , siLetLocalMaterialsOverlap
    SetValue "sphere.Material.Phong.diffuse.green", 0.142
    SetValue "sphere.Material.Phong.diffuse.red", 0.142
    CreatePrim "Sphere", "MeshSurface"
    Translate , 5.63213947844487, 0.195950637814795, -1.95950637814795E-02, siRelative, siView, siObj, siXYZ, , , , , , , , , , 0
    SelectObj "Sources.Materials.DefaultLib.Material"
    CopyPaste "Sources.Materials.DefaultLib.Material", , "sphere1", 1
    DeleteUnusedMaterials "Sources.Materials.DefaultLib"

Autodesk Softimage v7.5