1002
Chapter 14: Properties
Example
This statement displays the original coordinates of the Stage named Control_panel in the
Message window:
-- Lingo syntax
put(window("Control_panel").sourceRect)
// JavaScript syntax
put(window("Control_panel").sourceRect);
See also
Window
specular (light)
Usage
member(
whichCastmember
).light(
whichLight
).specular
Description
3D light property; allows you to get or set whether specularity is on
(TRUE)
or off
(FALSE)
.
Specularity refers to the ability to have a highlight appear on a model where the light hitting the
model is reflected toward the camera. The shininess of the model’s shader determines how large
the specular portion of the highlight is. The value for this property is ignored for ambient lights.
The default value for this property is
TRUE
.
Note:
Turning off this property may increase performance.
Example
The following statement sets the specular property of the light omni2 to
FALSE
. This light does
not cause highlights. If this is the only light currently shining in the scene, there will be no
specular highlights on any of the shaders in the scene.
member("3d world").light("omni2").specular = FALSE
See also
silhouettes
,
specularLightMap
specular (shader)
Usage
member(
whichCastmember
).shader(
whichShader
).specular
Description
3D standard shader property; allows you get or set the specular color of a given shader. The
specular color is the color of the highlight generated when specularity is turned on. There must be
lights in the scene with the specular property set to
TRUE
, for this property to have a visible effect.
The specular color is influenced by the color of the lights illuminating the object. If the specular
color is white but the color of a light is red, there will be a red specular highlight appearing on the
object. The default value for this property is rgb(255, 255, 255) which is white.
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
.
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...