ddg.visualization.blender.light module

ddg.visualization.blender.light.light(name='Light', type='SUN', location=(0.0, 0.0, 0.0), collection=None, color=(1.0, 1.0, 1.0), specular=1.0)[source]

Add a light.

Parameters:
namestring, default=’Light’

Name of the created light

typestring, default=’SUN’

Type of the light, ‘POINT’, ‘SUN’, ‘Sport’ or ‘AREA’

locationiterable of three floats, default=(0., 0., 0.)

location of the light

collectionbpy.types.collection, default=None

Collection to link light to, If the parameter is not given or set to None the light gets linked to bpy.context.scene.collection

coloriterable of three floats, default=(1.,1.,1.)

RGB color of the light.

specularfloat, default=1.

Specular value of the light in the illumination model.

Returns:
bpy.types.Light
ddg.visualization.blender.light.look_at_point(bobj, point, world_up=(0, 0, 1), distance=None)[source]

Rotates light so that it points toward a given point.

See ddg.visualization.blender.object.look_at_point for full documentation.