3D Lingo Dictionary > C-D > cloneMotionFromCastmember

 

cloneMotionFromCastmember

Syntax

member(whichCastmember).cloneMotionFromCastmember(newMotionName, sourceMotionName, sourceCastmember)

Description

3D command; copies the motion named sourceMotionName from the cast member sourceCastmember, renames it newMotionName, and inserts it into the cast member whichCastmember.

The source cast member must be finished loading for this command to work correctly.

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, cloneModelFromCastmember, clone, cloneDeep, loadFile()