type (texture) 1067
type (sprite)
Usage
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
type (texture)
Usage
member(
whichCastmember
).shader(
whichShader
).type
Description
3D texture property; the texture type of the referenced texture object. This property’s possible
values are:
•
#fromCastMember
indicates that this is texture was created from a Director cast member
supporting the
image
property using the
newTexture
command.
•
#fromImageObject
indicates that this is texture was created from an image object using the
newTexture
command.
•
#importedFromFile
indicates that this texture was created external to Director and created
upon file import or cast member loading.
Example
This statement shows that the texture used by the shader for the model named Pluto was created
from an image object:
put member("scene").model("Pluto").shader.texture.type
-- #fromImageObject
See also
newTexture
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...