## UnAssignMaterial

### Introduced

v4.0

### Description

Unassigns the material from the specified objects.

### Scripting Syntax

    UnAssignMaterial( [InputObjs] );

### Parameters

Parameter | Type | Description
--- | --- | ---
InputObjs | String | Object with material Default Value: If not specified, the user is prompted to pick one.

### Examples

#### VBScript Example

    '

    ' The following example uses UnassignMaterial to

    ' unassign a material from the given object.

    '

    NewScene ,False

    CreatePrim "Cone", "MeshSurface"

    SICreateMaterial ,"BlueMaterial","Sources.Materials.DefaultLib"

    SetDisplayMode "Camera", "textured"

    SetValue "Sources.Materials.DefaultLib.BlueMaterial.Phong.diffuse.green", 0.142

    SetValue "Sources.Materials.DefaultLib.BlueMaterial.Phong.diffuse.red", 0.142

    AssignMaterial "cone,Sources.Materials.DefaultLib.BlueMaterial"

    MsgBox "Blue Material is assigned"

    UnAssignMaterial "cone"

    MsgBox "Blue Material is unassigned"