Light Properties - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

Light properties

Use these properties to work with lights:
Property Name
name
parent
child.count
transform
userData
type
color
spotAngle
attenuation
specular
512
Chapter 19
Access
Description
Get
Unique name of this light.
If the light was exported from a 3D modeling
package, the name is the name assigned there.
Get and set
The model, light, camera, or group that is this
light's parent.
If the light has no parent, it cannot contribute
light.
Get
Number of immediate children (no
grandchildren) that the light has.
Get and set
Lingo transform object representing light's
position relative to its parent's transform.
transform.position
The
relative position;
gives the relative rotation.
Get and set
A property list associated with this light. The list
defaults to the properties assigned in the 3D
modeling tool, but users can add or delete
properties at any time.
Get and set
The kind of light this is. Must be one of the
following:
#ambient
#directional
light facing the light's direction. Distance to the
light isn't important.
#point:
omnidirectional and illuminating all parts of the
model facing the light
#spot
parts that face it, with brighter illumination the
closer the model is. Similar to
#directional
distance from the light is taken into account.
Get and set
Lingo color object defining color and intensity.
Ranges from rgb(255,255,255), which is pure
white to rgb(0,0,0), which is no light at all.
Get and set
Angle of the light's projection cone.
If type equals
the umbra causes a Lingo "property not found"
error.
Get and set
A three-value vector controlling the constant,
linear, and quadratic attenuation factors for
spotlights.
TRUE (1)
Get and set
whether or not the light produces specular
effects on surfaces. The property is ignored for
ambient lights.
Although
FALSE (0)
to
gives the
transform.rotation
: applied to all sides of the model
: applied to those parts of the
Like a bare light bulb,
: Like a spotlight, casting light on model
, except that the apparent
#spot
, setting a value less than
FALSE (0)
/
value that controls
TRUE (1)
is the default, switching
may improve performance.
Default
None
Group
("World")
0
Identity transform
Properties
assigned in 3D
modeling tool
None
rgb(191,191,
191)
90.0
vector
(1.0,0.0,0.0
)
TRUE (1)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx

Table of Contents