User Guide
144 Chapter 8: 3D Objects
Property summary for the Group object
See also
Camera, Light, Model, Model Resource, Motion, Shader, Texture
Light
Represents a light in a 3D world.
Lights are used to light a 3D world. Without lights, the objects within the world cannot be seen.
You can create a reference to a light by using the
light property of the 3D Member object. The
light property gets the light at a specified index position in the list of lights. In Lingo, you use
the
light property directly from the 3D Member object to create a reference. In JavaScript syntax,
you must use the
getPropRef() method to create a reference.
The following example creates a reference to the third light of the 3D cast member "film room"
and assigns it to the variable
myLight.
-- Lingo syntax
myLight = member("film room").light[3]
// JavaScript syntax
var myLight = member("film room").getPropRef("light", 3);
Property summary for the Light object
See also
Camera, Group, Model, Model Resource, Motion, Shader, Texture
Property
name (3D)
parent
pointAtOrientation
transform (property)
userData
worldPosition
Property
attenuation
color (light)
specular (light)
spotAngle
spotDecay
type (light)