3D Lingo Dictionary > L-N > motion |
![]() ![]() ![]() |
motion
Syntax
member(whichCastmember
).motion(whichMotion
) member(whichCastmember
).motion[index
] member(whichCastmember
).motion.count
Description
3D command; returns the motion found within the referenced cast member that has the name specified by whichMotion
, or is found at the index position specified by the index
. As motion.count
, this property returns the total number of motions found within the cast member.
Object name string comparisons are not case-sensitive. The index position of a particular motion may change when objects at lower index positions are deleted.
If no motion is found that uses the specified name or no motion is found at the specified index position then this command returns void.
Examples
thisMotion = member("3D World").motion("Wing Flap") thisMotion = member("3D World").motion[7] put member("scene").motion.count -- 2
See also
![]() ![]() ![]() |