User Guide
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").scrollTop + 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").scrollTop + 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.