693
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)
type (shader)
Syntax
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.
Examples
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
type (sprite property)
Syntax
sprite(
whichSprite
).type
the type of sprite
whichSprite
Description
Sprite property; clears sprite channels during Score recording by setting the
type
sprite property
value for that channel to 0.
Note:
Switch the member of a sprite only to another member of the same type to avoid changing the sprite’s
properties when the member type is switched.
This property can be tested and set.
Example
This statement clears sprite channel 1 when issued during a Score recording session:
sprite(1).type = 0
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...