resolution (DVD)
955
See also
Window
resolution (3D)
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).resolution
Description
3D property; allows you to get or set the resolution property of a model resource whose type is
either
#sphere
or
#cylinder
.
Resolution controls the number of polygons used to generate the geometry of the model resource.
A larger value generates more polygons and thus results in a smoother surface. The default value
of this property is 20.
Example
This statement sets the resolution of the model resource named sphere01 to 10.0:
member("3D World").modelResource("sphere01").resolution = 10.0
resolution (DVD)
Usage
-- Lingo syntax
dvdObjRef
.resolution
// JavaScript syntax
dvdObjRef
.resolution;
Description
DVD property. Returns a property list that contains the
x
-axis (width) and
y
-axis (height) source
resolution. Read-only.
Example
This statement returns a sample property list of resolutions:
-- Lingo syntax
trace(member(1).resolution) -- [#width: 720, #height: 480]
// JavaScript syntax
trace(member(1).resolution); // ["width": 720, "height": 480]
See also
DVD
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...