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, (never None)) – New name for the datablock
- type (enum in [‘POINT’, ‘SUN’, ‘SPOT’, ‘HEMI’, ‘AREA’]) –
Type, The type of texture to add
POINTPoint, Omnidirectional point light source.SUNSun, Constant direction parallel ray light source.SPOTSpot, Directional cone light source.HEMIHemi, 180 degree constant light source.AREAArea, Directional area light source.
Returns: New lamp datablock
Return type:
-
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