Lamp(ID)

base classes — bpy_struct, ID

subclasses — AreaLamp, SunLamp, SpotLamp, PointLamp, HemiLamp

class bpy.types.Lamp(ID)

Lamp datablock for lighting a scene

active_texture

Active texture slot being displayed

Type :Texture
active_texture_index

Index of active texture slot

Type :int in [0, 17], default 0
animation_data

Animation data for this datablock

Type :AnimData, (readonly)
color

Light color

Type :float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)
distance

Falloff distance - the light is at half the original intensity at this point

Type :float in [0, inf], default 0.0
energy

Amount of light that the lamp emits

Type :float in [-inf, inf], default 0.0
node_tree

Node tree for node based lamps

Type :NodeTree, (readonly)
texture_slots

Texture slots defining the mapping and influence of textures

Type :LampTextureSlots bpy_prop_collection of LampTextureSlot, (readonly)
type

Type of Lamp

  • POINT Point, Omnidirectional point light source.
  • SUN Sun, Constant direction parallel ray light source.
  • SPOT Spot, Directional cone light source.
  • HEMI Hemi, 180 degree constant light source.
  • AREA Area, Directional area light source.
Type :enum in [‘POINT’, ‘SUN’, ‘SPOT’, ‘HEMI’, ‘AREA’], default ‘POINT’
use_diffuse

Do diffuse shading

Type :boolean, default False
use_negative

Cast negative light

Type :boolean, default False
use_nodes

Use shader nodes to render the lamp

Type :boolean, default False
use_own_layer

Illuminate objects only on the same layers the lamp is on

Type :boolean, default False
use_specular

Create specular highlights

Type :boolean, default False

Inherited Properties

Inherited Functions

References

Previous topic

KinematicConstraint(Constraint)

Next topic

LampSkySettings(bpy_struct)