EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 990

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
990 Chapter 14: Properties
Example
This statement checks whether the Shift key is being pressed and calls the handler doCapitalA
if it is:
-- Lingo syntax
if (_key.shiftDown) then
doCapitalA(_key.key)
end if
// JavaScript syntax
if (_key.shiftDown) {
doCapitalA(_key.key);
}
See also
controlDown, Key, key, keyCode, optionDown
shininess
Usage
member(whichCastmember).shader(whichShader).shininess
member(whichCastmember).model(whichModel).shader.shininess
member(whichCastmember).model(whichModel).shaderList\
[shaderListIndex].shininess
Description
3D standard shader property; allows you to get or set the shininess of a surface. Shininess is
defined as the percentage of shader surface devoted to highlights. The value is an integer between
0 and 100, with a default of 30.
All shaders have access to the
#standard shader properties; in addition to these standard shader
properties shaders of the types
#engraver, #newsprint, and #painter have properties unique to
their type. For more information, see
newShader.
Example
The following statement sets the shininess property of the first shader in the shader list of the
model gbCyl3 to 60. Sixty percent of the surface of the shader will be dedicated to highlights.
member("Scene").model("gbCyl3").shader.shininess = 60
silhouettes
Usage
member(whichCastmember).model(whichModel).inker.silhouettes
member(whichCastmember).model(whichModel).toon.silhouettes
Description
3D toon and inker modifier property; indicates the presence (TRUE) or absence (FALSE) of lines
drawn by the modifier at the visible edges of the model.
Silhouette lines are drawn around the model’s 2D image on the camera’s projection plane. Their
relationship to the model’s mesh is not fixed, unlike crease or boundary lines, which are drawn on
features of the mesh.