3D Lingo Dictionary > T-Z > type (motion)

 

type (motion)

Syntax

member(whichCastmember).motion(whichMotion).type

Description

3D motion property; the motion type of the referenced motion object. This property's possible values are:

#bonesPlayer indicates that this motion is a bones based animation and it requires the use of the #bonesPlayer modifier for playback.

#keyFramePlayer indicates that this motion is a keyframed animation and it requires the use of the #keyFramePlayer modifier for playback.

#none indicates that this motion has no mapped movement and it is suitable for use by either the #bonesPlayer or the #keyFramePlayer modifier for playback. The default motion object found in every 3D cast member is of this type.

Examples

The following statement displays the type property of the motion named Run.

put member("scene").motion("Run").type
-- #bonesPlayer

The following statement displays the type property of the motion named DefaultMotion.

put member("scene").motion("DefaultMotion").type
-- #none

See also

bonesPlayer (modifier), keyframePlayer (modifier)