MainLamps(bpy_struct)

base class — bpy_struct

class bpy.types.MainLamps(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

MainImages(bpy_struct)

Next topic

MainLattices(bpy_struct)