[Blender Index] [Blender Hierarchy]
Blender lamps can be seen in the OOPS window as yellow rectangles More...
#include <lamp.h>
Inherits: Blender
Blender lamps can be seen in the OOPS window as yellow rectangles. They are connected to an object. Compare the attributes of a lamp to the settings of the lamp buttons (F4).
A Blender lamp has always a unique name. The name you give as an argument is only a proposal for the real name. Blender will check if this name is already used and rename the lamp if necessary.
All rectangles you can see in the OOPS window are instances of classes with an unique name for all instances of this class. Nevertheless the name of two instances of different classes can be the same.
The type of a lamp can be: "Lamp", "Spot", "Sun", or "Hemi"
The mode indicates with a string of length 8 if a setting in the lamp buttons (F4) is on ("1") or off ("0"). The order is exactly the same as in the lamp buttons (from top downwards): "Quad", "Sphere", "Shadows", "Halo", "Layer", "Negative", "OnlyShadow", and "Square".
Light energy
Red part of the lamp color
Green part of the lamp color
Blue part of the lamp color
Influences the light attenuation
Spotlight setting: Spot size (angle)
Spotlight setting: Spot blend (falloff from full light intensity to darkness)
Influences the light attenuation
Influences the light attenuation
The intensity of the spot halo
Clipping start value
Clipping end value
| Kdoc |