User Guide
deleteModel 289
deleteLight
Usage
member(whichCastmember).deleteLight(whichLight)
member(whichCastmember).deleteLight(index)
Description
3D command; removes the light from the cast member and the 3D world. Children of the light
are removed from the 3D world but not deleted.
Parameters
lightNameOrNum
Required. A string or integer that specifies the name or index position of the
light to delete.
Example
These examples delete lights from the cast member named Room.
member("Room").deleteLight("ambientRoomLight")
member("Room").deleteLight(6)
See also
newLight
deleteModel
Usage
member(whichCastmember).deleteModel(whichModel)
member(whichCastmember).deleteModel(index)
Description
3D command; removes the model from the cast member and the 3D world. Children of the
model are removed from the 3D world but not deleted.
Parameters
modelNameOrNum
Required. A string or integer that specifies the name or index position of the
model to delete.
Example
The first line of this example deletes the model named Player3 from the cast member named
gbWorld. The second line deletes the ninth model of gbWorld.
member("gbWorld").deleteModel("Player3")
member("gbWorld").deleteModel(9)
See also
newModel