Lamp(ID)¶
base classes — bpy_struct, ID
subclasses —
AreaLamp, HemiLamp, PointLamp, SpotLamp, SunLamp
-
class
bpy.types.Lamp(ID)¶ Lamp data-block for lighting a scene
-
active_texture_index¶ Index of active texture slot
Type: int in [0, 17], default 0
-
color¶ Light color
Type: float array of 3 items in [0, inf], default (0.0, 0.0, 0.0)
-
distance¶ Falloff distance - the light is at half the original intensity at this point
Type: float in [0, inf], default 0.0
-
energy¶ Amount of light that the lamp emits
Type: float in [-inf, inf], default 0.0
-
texture_slots¶ Texture slots defining the mapping and influence of textures
Type: LampTextureSlotsbpy_prop_collectionofLampTextureSlot, (readonly)
-
type¶ Type of Lamp
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.
Type: enum in [‘POINT’, ‘SUN’, ‘SPOT’, ‘HEMI’, ‘AREA’], default ‘POINT’
-
use_diffuse¶ Do diffuse shading
Type: boolean, default False
-
use_negative¶ Cast negative light
Type: boolean, default False
-
use_nodes¶ Use shader nodes to render the lamp
Type: boolean, default False
-
use_own_layer¶ Illuminate objects only on the same layers the lamp is on
Type: boolean, default False
-
use_specular¶ Create specular highlights
Type: boolean, default False
-
classmethod
bl_rna_get_subclass(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The RNA type or default when not found. Return type: bpy.types.Structsubclass
-
classmethod
bl_rna_get_subclass_py(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The class or default when not found. Return type: type
-
Inherited Properties
Inherited Functions
References