3D Lingo Dictionary > C-D > deleteMotion |  |

deleteMotion

Syntax

    member(whichCastmember).deleteMotion(whichMotion)
    member(whichCastmember).deleteMotion(index)

Description

3D command; removes the motion from the cast member.

Examples

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()`