3D Lingo Dictionary > C-D > deleteModelResource |  |

deleteModelResource

Syntax

    member(whichCastmember).deleteModelResource(whichModelResource)
    member(whichCastmember).deleteModelResource(index)

Description

3D command; removes the model resource from the cast member and the 3D world.

Models using the deleted model resource become invisible, because they lose their geometry, but they are not deleted or removed from the world.

Example

These examples delete two model resources from the cast member named StreetScene.

    member("StreetScene").deleteModelResource("HouseB")
    member("StreetScene").deleteModelResource(3)

See also

`newModelResource`, `newMesh`