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
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
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
Required. A string or integer that specifies the name or index position of the
Required. A string or integer that specifies the name or index position of the
deleteModel
289
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers