User Guide

1066 Chapter 14: Properties
type (motion)
Usage
member(whichCastmember).motion(whichMotion).type
Description
3D motion property; the motion type of the referenced motion object. This propertys 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.
Example
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)
type (shader)
Usage
member(whichCastmember).shader(whichShader).type
Description
3D shader property; the shader type of the referenced shader object. This propertys possible
values are:
#standard indicates that this is a standard shader.
#painter indicates that this is a painter shader.
#newsprint indicates that this is a newsprint shader.
#engraver indicates that this is an engraver shader.
Example
This statement shows that the shader used by the model named box2 is a painter shader:
put member("Scene").model("box2").shader.type
-- #painter
See also
newShader