User Guide
thumbNail 1039
These statements rotate the third texture used by the shader gbCyl3 by 90× around its center,
assuming that textureList[3] is a 128x128 sized texture:
s = member("scene").shader("gbCyl3")
s.textureTransformList[3].translate(-64,-64,0)
s.textureTransformList[3].rotate(0,0,90)
s.textureTransformList[3].translate(64,64,0)
textureType
Usage
member(whichCastmember).textureType
Description
3D texture property; allows you to get or set the texture type for the default texture. Possible
values are as follows:
• #none specifies that there is no texture type.
• #default uses the texture from the original shader as the texture.
• #member uses the image from the specified cast member as the texture.
The default value for this property is
#default. You must specify #member for this property in
order to use the
textureMember property.
Example
The following statement sets the textureType property of the cast member Scene to #member.
member("Scene").textureType = #member
This makes it possible use a bitmap cast member as the source of the default texture by setting the
textureMember property. The bitmap cast member is named “grass”.
member("Scene").textureMember = "grass"
See also
textureMember
thumbNail
Usage
-- Lingo syntax
memberObjRef.thumbNail
// JavaScript syntax
memberObjRef.thumbNail;
Description
Member property; contains the image used to preview a cast member in the Cast window. Read/
write during authoring only.
The image can be customized for any cast member.