# Lamp Class Reference

[Blender Index] [Blender Hierarchy]

Blender lamps can be seen in the OOPS window as yellow rectangles More...

`#include <lamp.h>`

Inherits: Blender

## Public Members

- Lamp ()
- ~Lamp ()
- Lamp (const char* name = "Lamp")
- char* name
- PyObject* type
- PyObject* mode
- PyObject* Energ
- PyObject* R
- PyObject* G
- PyObject* B
- PyObject* Dist
- PyObject* SpoSi
- PyObject* SpoBl
- PyObject* Quad1
- PyObject* Quad2
- PyObject* HaInt
- PyObject* ClipSta
- PyObject* ClipEnd

## Detailed Description

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).

## Lamp(const char* name = "Lamp")

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.

## char* name

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.

## PyObject* type

The type of a lamp can be: "Lamp", "Spot", "Sun", or "Hemi"

## PyObject* mode

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".

## PyObject* Energ

Light energy

## PyObject* R

Red part of the lamp color

## PyObject* G

Green part of the lamp color

## PyObject* B

Blue part of the lamp color

## PyObject* Dist

Influences the light attenuation

## PyObject* SpoSi

Spotlight setting: Spot size (angle)

## PyObject* SpoBl

Spotlight setting: Spot blend (falloff from full light intensity to darkness)

## PyObject* Quad1

Influences the light attenuation

## PyObject* Quad2

Influences the light attenuation

## PyObject* HaInt

The intensity of the spot halo

## PyObject* ClipSta

Clipping start value

## PyObject* ClipEnd

Clipping end value

- Author: Jan Walter
- Documentation generated by jan@nvidea on Mon Mar 5 16:57:27 CET 2001

K doc