v4.0
Unassigns the material from the specified objects.
UnAssignMaterial( [InputObjs] ); |
Parameter | Type | Description |
---|---|---|
InputObjs | String |
Object with material Default Value: If not specified, the user is prompted to pick one. |
' ' 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" |