BlendDataLamps(bpy_struct)

base class — bpy_struct

class bpy.types.BlendDataLamps(bpy_struct)

Collection of lamps

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