
sds (modifier)
979
The global variable
sliderVal
could measure how far the user drags a slider. The statement
set
newVal = sliderVal * 100
multiplies
sliderVal
to give a value that is greater than the
distance the user drags the slider. If
sliderVal
is positive, the text moves up; if
sliderVal
is
negative, the text moves down.
Example
This repeat loop makes the field Credits scroll by continuously increasing the value
of
scrollTop
:
--Lingo syntax
on wa
member("Credits").scrollTop = 1
repeat with count = 1 to 150
member("Credits").scrollTop = member("Credits").scr 1
_movie.updateStage()
end repeat
end
// JavaScript syntax
function wa() {
member("Credits").scrollTop = 1;
for (var count = 1; count <= 150; count++) {
member("Credits").scrollTop = member("Credits").scr 1;
_movie.updateStage();
}
}
sds (modifier)
Usage
member(
whichCastmember
).model(
whichModel
).sds.
whichProperty
Description
3D modifier; adds geometric detail to models and synthesizes additional details to smooth out
curves as the model moves closer to the camera. After you have added the
sds
modifier to a model
using
addModifier()
, you can set the properties of the
sds
modifier.
The
sds
modifier directly affects the model resource. Be careful when using the
sds
and
lod
modifiers together, because they perform opposite functions (the
sds
modifier adds geometric
detail and the
lod
modifier removes geometric detail). Before adding the
sds
modifier, it is
recommended that you set the
lod.auto
modifier property to
FALSE
and set the
lod.level
modifier property to the desired resolution, as follows:
member("myMember").model("myModel").lod.auto = 0
member("myMember").model("myModel").lod.level = 100
member("myMember").model("myModel").addmodifier(#sds)
The
sds
modifier cannot be used with models that already use either the
inker
or
toon
modifiers.
After you have added the
sds
modifier to a model resource you can get or set the
following properties:
enabled
indicates whether subdivision surfaces functionality is enabled (
TRUE
) or disabled
(
FALSE
). The default setting for this property is
TRUE
.
Содержание 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...