796
Chapter 14: Properties
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
,
width
height (3D)
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).height
member(
whichCastmember
).texture(
whichTexture
).height
Description
3D
#box
model resource,
#cylinder
model resource, and texture property; indicates the height
of the object.
The height of a
#box
or
#cylinder
model resource is measured in world units and can be tested
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)
,
width (3D)
heightVertices
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
heightVertices
Description
3D
#box
model resource property; indicates the number of mesh vertices along the height of the
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
property of a model’s shader to
#wire
to see the faces of the mesh of the
model’s resource. Set the
renderStyle
property to
#point
to see just the vertices of the mesh.
The value of this property must be greater than or equal to 2. The default value is 4.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...