MainLamps(bpy_struct)

base class — bpy_struct

class bpy.types.MainLamps(bpy_struct)

Collection of lamps

new(name)

Add a new lamp to the main database

Parameters:
  • name (string) – New name for the datablock.
Returns:

New lamp datablock.

Return type:

Lamp

remove(lamp)

Remove a lamp from the current blendfile.

Parameters:
  • lamp (Lamp, (never None)) – Lamp to remove.

Inherited Properties

Inherited Functions

References

Previous topic

MainImages(bpy_struct)

Next topic

MainLattices(bpy_struct)