BlendDataLamps(bpy_struct)

base class — bpy_struct

class bpy.types.BlendDataLamps(bpy_struct)

Collection of lamps

is_updated
Type :boolean, default False, (readonly)
new(name, type)

Add a new lamp to the main database

Parameters:
  • name (string) – New name for the datablock
  • type (enum in [‘POINT’, ‘SUN’, ‘SPOT’, ‘HEMI’, ‘AREA’]) –

    Type, The type of texture to add

    • 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.
Returns:

New lamp datablock

Return type:

Lamp

remove(lamp)

Remove a lamp from the current blendfile

Parameters:lamp (Lamp, (never None)) – Lamp to remove
tag(value)

tag

Parameters:value (boolean) – Value

Inherited Properties

Inherited Functions

References

Previous topic

BlendDataImages(bpy_struct)

Next topic

BlendDataLattices(bpy_struct)