![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 265](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720265.webp)
cloneModelFromCastmember
265
cloneDeep
Usage
member(
whichCastmember
).model(
whichModel
).cloneDeep(
cloneName
)
member(
whichCastmember
).group(
whichGroup
).cloneDeep(
cloneName
)
member(
whichCastmember
).light(
whichLight
).cloneDeep(
cloneName
)
member(
whichCastmember
).camera(
whichCamera
).cloneDeep(
cloneName
)
Description
3D command; creates a copy of the model, group, light, or camera plus all of the following:
•
The model resources, shaders, and textures used by the original model or group
•
The children of the model, group, light, or camera
•
The model resources, shaders, and textures used by the children
This method uses more memory and takes more time than the
clone
command.
Parameters
cloneName
Required. Specifies the name of the new clone.
Example
This statement creates a copy of the model named Teapot, its children, and the model resources,
shaders, and textures used by Teapot and its children. The variable
teapotCopy
is a reference to
the cloned model.
teapotCopy = member("3D World").model("Teapot").cloneDeep("Teapot2")
See also
clone
,
cloneModelFromCastmember
,
cloneMotionFromCastmember
,
loadFile()
cloneModelFromCastmember
Usage
member(
whichCastmember
).cloneModelFromCastmember\
(
newModelName, sourceModelName, sourceCastmember
)
Description
3D command; copies a model from a cast member, renames it, and inserts it into a cast member
as a child of its 3D world.
This command also copies the children of
sourceModelName
, as well as the model resources,
shaders, and textures used by the model and its children.
The source cast member must be finished loading for this command to work correctly.
Parameters
newModelName
Required. Specifies the name of the newly cloned model.
sourceModelName
Required. Specifies the model to clone.
sourceCastMember
Required. Specifies the cast member that contains the model to clone.
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...