User Guide
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.