User Guide

Lingo Dictionary 185
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()
deleteOne
Syntax
list.deleteOne(value)
deleteOne list, value
Description
List command; deletes a value from a linear or property list. For a property list, deleteOne also
deletes the property associated with the deleted value. If the value appears in the list more than
once,
deleteOne deletes only the first occurrence.
Attempting to delete a property has no effect.
Example
The first statement creates a list consisting of the days Tuesday, Wednesday, and Friday. The
second statement deletes the name Wednesday from the list.
days = ["Tuesday", "Wednesday", "Friday"]
days.deleteOne("Wednesday")
put days
The put days statement causes the Message window to display the result:
-- ["Tuesday", "Friday"].
deleteProp
Syntax
list.deleteProp(item)
deleteProp list, item
Description
List command; deletes the specified item from the specified list.
For linear lists, replace item with the number identifying the list position of the item to be
deleted. The
deleteProp command for linear lists is the same as the deleteAt command. If
the number is greater than the number of items in the list, a script error occurs.