Textures - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Method
deleteShader
(name)
deleteShader
(index)

Textures

Textures are 2D images that are drawn on the surface of a 3D model. Textures can be assigned to
models in your 3D modeling software, or you can use any bitmap cast member in your movie.
You can also use any image object created using Lingo or JavaScript.
The following cast member methods and properties can be used to perform basic
texture operations:
Method
texture.count
texture(name)
texture[index]
newTexture
(name, type,
source)
deleteTexture
(name)
deleteTexture
(index)
320
Chapter 15: The 3D Cast Member, 3D Text, and 3D Behaviors
Function
Deletes the shader named
references to this shader persist but can
do nothing.
Deletes the shader with the given index
number. Script references to this shader
persist but can do nothing.
Function
Returns the number of textures in the texture
object list of the cast member.
Returns the texture object named
Returns the texture at the designated
position in the index. The index number can
change if textures are added or deleted.
Creates a new texture named
The
can have the following values:
type
#fromCastmember
#fromImageObject
If
is
type
#from Castmember
member reference. For example,
"
"
member(
concrete
) or member[2,3]
If
is
type
#from ImageObject
script image object.
Deletes the texture named
references to this texture persist but can
do nothing.
Deletes the texture with the given index
number. Script references to this texture
persist but can do nothing.
Returns
. Script
name
TRUE (1)
name
shader named
exist.
TRUE (1)
index number exists.
(0)
number doesn't exist.
Returns
Integer.
.
Returns the texture object
name
named
void
exist.
Returns the texture object at
that index number if it exists.
Returns
not exist at that index number.
.
Returns a new texture object
name
with a unique name. If the
name isn't unique, returns a
script error.
,
is a cast
source
,
is a
source
. Script
name
TRUE (1)
name
texture named
exist.
TRUE (1)
index number exists.
(0)
index number doesn't exist.
if the shader named
exists.
if the
FALSE (0)
doesn't
name
if the shader with this
FALSE
if the shader with this index
if it exists. Returns
name
if the object does not
if the object does
void
if the texture named
exists.
if the
FALSE (0)
doesn't
name
if the texture with this
FALSE
if the texture with this

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents