290
Chapter 12: Methods
deleteModelResource
Usage
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.
Parameters
resourceNameOrNum
Required. A string or integer that specifies the name or index position of
the model resource to delete.
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
deleteMotion
Usage
member(
whichCastmember
).deleteMotion(
whichMotion
)
member(
whichCastmember
).deleteMotion(
index
)
Description
3D command; removes the motion from the cast member.
Parameters
motionNameOrNum
Required. A string or integer that specifies the name or index position of the
motion to delete.
Example
The first line of this example deletes the motion named BackFlip from the cast member named
PicnicScene. The second line deletes the fifth motion in PicnicScene.
member("PicnicScene").deleteMotion("BackFlip")
member("PicnicScene").deleteMotion(5)
See also
newMotion()
,
removeLast()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...