SpotLamp(Lamp)

base classes — bpy_struct, ID, Lamp

class bpy.types.SpotLamp(Lamp)

Directional cone lamp

compression_threshold

Deep shadow map compression threshold

Type :float in [0, 1], default 0.0
falloff_curve

Custom Lamp Falloff Curve

Type :CurveMapping, (readonly)
falloff_type

Intensity Decay with distance

Type :enum in [‘CONSTANT’, ‘INVERSE_LINEAR’, ‘INVERSE_SQUARE’, ‘CUSTOM_CURVE’, ‘LINEAR_QUADRATIC_WEIGHTED’], default ‘CONSTANT’
halo_intensity

Brightness of the spotlight’s halo cone (Buffer Shadows)

Type :float in [-inf, inf], default 0.0
halo_step

Volumetric halo sampling frequency

Type :int in [0, 12], default 0
linear_attenuation

Linear distance attenuation

Type :float in [0, 1], default 0.0
quadratic_attenuation

Quadratic distance attenuation

Type :float in [0, 1], default 0.0
shadow_adaptive_threshold

Threshold for Adaptive Sampling (Raytraced shadows)

Type :float in [0, 1], default 0.0
shadow_buffer_bias

Shadow buffer sampling bias

Type :float in [0.001, 5], default 0.0
shadow_buffer_clip_end

Shadow map clip end beyond which objects will not generate shadows

Type :float in [0, 9999], default 0.0
shadow_buffer_clip_start

Shadow map clip start: objects closer will not generate shadows

Type :float in [0, 9999], default 0.0
shadow_buffer_samples

Number of shadow buffer samples

Type :int in [1, 16], default 0
shadow_buffer_size

Resolution of the shadow buffer, higher values give crisper shadows but use more memory

Type :int in [512, 10240], default 0
shadow_buffer_soft

Size of shadow buffer sampling area

Type :float in [0, 100], default 0.0
shadow_buffer_type

Type of shadow buffer

Type :enum in [‘REGULAR’, ‘HALFWAY’, ‘IRREGULAR’, ‘DEEP’], default ‘REGULAR’
shadow_color

Color of shadows cast by the lamp

Type :float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)
shadow_filter_type

Type of shadow filter (Buffer Shadows)

Type :enum in [‘BOX’, ‘TENT’, ‘GAUSS’], default ‘BOX’
shadow_method

Method to compute lamp shadow with

Type :enum in [‘NOSHADOW’, ‘BUFFER_SHADOW’, ‘RAY_SHADOW’], default ‘NOSHADOW’
shadow_ray_sample_method

Method for generating shadow samples: Adaptive QMC is fastest, Constant QMC is less noisy but slower

Type :enum in [‘ADAPTIVE_QMC’, ‘CONSTANT_QMC’], default ‘ADAPTIVE_QMC’
shadow_ray_samples

Amount of samples taken extra (samples x samples)

Type :int in [1, 64], default 0
shadow_sample_buffers

Number of shadow buffers to render for better AA, this increases memory usage

Type :enum in [‘BUFFERS_1’, ‘BUFFERS_4’, ‘BUFFERS_9’], default ‘BUFFERS_1’
shadow_soft_size

Light size for ray shadow sampling (Raytraced shadows)

Type :float in [-inf, inf], default 0.0
show_cone

Draw transparent cone in 3D view to visualize which objects are contained in it

Type :boolean, default False
spot_blend

The softness of the spotlight edge

Type :float in [0, 1], default 0.0
spot_size

Angle of the spotlight beam in degrees

Type :float in [0.0174533, 3.14159], default 0.0
use_auto_clip_end

Automatic calculation of clipping-end, based on visible vertices

Type :boolean, default False
use_auto_clip_start

Automatic calculation of clipping-start, based on visible vertices

Type :boolean, default False
use_halo

Renders spotlight with a volumetric halo (Buffer Shadows)

Type :boolean, default False
use_only_shadow

Causes light to cast shadows only without illuminating objects

Type :boolean, default False
use_shadow_layer

Causes only objects on the same layer to cast shadows

Type :boolean, default False
use_sphere

Sets light intensity to zero beyond lamp distance

Type :boolean, default False
use_square

Casts a square spot light shape

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

SplinePoints(bpy_struct)

Next topic

StateActuator(Actuator)