User Guide
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