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 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.
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 property’s 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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...