blenderproc.python.modules.lighting.LightInterface module

class blenderproc.python.modules.lighting.LightInterface.LightInterface(config)[source]

Bases: blenderproc.python.modules.main.Module.Module

Configuration:

Parameter Description Type
cross_source_settings See the next table for which properties can be set. Default: {}. dict

Properties per lights entry:

Parameter Description Type
location The position of the light source, specified as a list of three values. Default: [0, 0, 0] list
rotation The rotation of the light source, specified as a list of three euler angles. Default: [0, 0, 0] list
color Light color, specified as a list of three values [R, G, B]. Default: [1, 1, 1]. Range: [0, inf] list
distance Falloff distance of the light = point where light is half the original intensity. Default: 0. Range: [0, inf] float
energy Intensity of the emission of a light source. Default: 10. float
type The type of a light source. Default: POINT. Available: [POINT, SUN, SPOT, AREA] string
_add_light_source(config)[source]

Adds a new light source according to the given configuration.

Parameters:config – A configuration object which contains all parameters relevant for the new light source.