3D Lingo Dictionary > L-N > newLight |  |

newLight

Syntax

    member(whichCastmember).newLight(newLightName, #typeIndicator)

Description

3D command; creates a new light named, `newLightName`, with the type `#typeIndicator,` and adds it to the light palette. You can not have two lights in the palette with the same name.

The `#typeIndicator` parameter has the following possible values:

| `#ambient` is a generalized light in the 3D world.
| `#directional` is`` a light from a specific direction.
| `#point` is a light source like a light bulb.
| `#spot` is a spotlight effect.

Example

This statement creates a new light in the cast member named 3D World. It is an ambient light called "ambient room light".

    member("3D World").newLight("ambient room light", #ambient)