MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 796

Director scripting reference
Hello, I am your AI assistant. How can I help you?
Table of Contents

Advertisement

This statement sets the height of sprite 10 to 26 pixels:
-- Lingo syntax
sprite(10).height = 26
// JavaScript syntax
sprite(10).height = 26;
See also
Member, Sprite,
height (3D)
Usage
member(whichCastmember).modelResource(whichModelResource).height
member(whichCastmember).texture(whichTexture).height
Description
3D
model resource,
#box
of the object.
The height of a
#box
and set. The default value for this property is 50.
The height of a texture is measured in pixels and can be tested but not set. The height of the
texture is rounded from the height of the source of the texture to the nearest power of 2.
Example
This statement sets the height of the model resource named Tower to 225.0 world units:
member("3D World").modelResource("Tower").height = 225.0
This statement shows that the height of the texture named Marsmap is 512 pixels.
put member("scene").texture("Marsmap").height
-- 512
See also
length
(3D),
heightVertices
Usage
member(whichCastmember).modelResource(whichModelResource).\
heightVertices
Description
3D
model resource property; indicates the number of mesh vertices along the height of the
#box
box. Increasing this value increases the number of faces, and therefore the fineness, of the mesh.
The height of a box is measured along its Y axis.
Set the
renderStyle
model's resource. Set the
The value of this property must be greater than or equal to 2. The default value is 4.
796
Chapter 14: Properties
width
#cylinder
or
model resource is measured in world units and can be tested
#cylinder
width (3D)
property of a model's shader to
renderStyle
model resource, and texture property; indicates the height
#wire
property to
to see just the vertices of the mesh.
#point
to see the faces of the mesh of the

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents