type (light)
Syntax
member(whichCastmember
).light(whichLight
).type
Description
3D light property; the light type of the referenced light. This property's possible values are:
 |
#ambient lights of this type cast their light evenly on all surfaces. The intensity of ambient lights is not affected by distance from the light source.
|
 |
#directional lights appear to shine in a particular direction, but are not as focused as lights of type #spot . The intensity of directional lights decreases with distance from the light source.
|
 |
#point lights shine in all directions from a specific location in the 3D world. The effect is similar to a bare light bulb hanging in a room. The intensity of point lights decreases with distance from the light source.
|
 |
#spot Lights of this type cast their light from a particular point and within the cone defined by the light's forward direction and spotAngle property. The intensity of spot lights declines with distance from the light source using the values defined in the light's attenuation property.
|
Example
The following statement displays the type property of the light named MainLight.
put member("3D").motion("MainLight").type
-- #spot
See also
spotAngle
, attenuation