266
Chapter 12: Methods
Example
This statement makes a copy of the model named Pluto of the cast member named Scene and
inserts it into the cast member named Scene2 with the new name Planet. The children of Pluto
are also imported, as are the model resources, shaders, and textures used by Pluto and its children.
member("Scene2").cloneModelFromCastmember("Planet", "Pluto", \
member("Scene"))
See also
cloneMotionFromCastmember
,
clone
,
cloneDeep
,
loadFile()
cloneMotionFromCastmember
Usage
member(
whichCastmember
).cloneMotionFromCastmember(
newMotionName,
\
sourceMotionName, sourceCastmember
)
Description
3D command; copies a motion from a cast member, renames it, and inserts it into a cast member.
The source cast member must be finished loading for this command to work correctly.
Parameters
newMotionName
Required. Specifies the name of the newly cloned motion.
sourceMotionName
Required. Specifies the motion to clone.
sourceCastMember
Required. Specifies the cast member that contains the motion to clone.
Example
This statement copies the motion named Walk from the cast member named ParkScene, names
the copy FunnyWalk, and puts the copy in the cast member gbMember.
member("gbMember").cloneMotionFromCastmember("FunnyWalk", \
"Walk", member("ParkScene"))
See also
map (3D)
,
cloneModelFromCastmember
,
clone
,
cloneDeep
,
loadFile()
close()
Usage
-- Lingo syntax
windowObjRef
.close()
// JavaScript syntax
windowObjRef
.close();
Description
Window method; closes a window.
Closing a window that is already closed has no effect.
Summary of Contents for DIRECTOR MX 2004
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...