blenderlightdata.py

class LightType(value)[source]

Bases: Enum

Enumeration of available light types in Blender.

Variables:
  • POINT (str) – Omnidirectional point light source

  • SUN (str) – Directional sunlight (parallel rays)

  • SPOT (str) – Cone-shaped spotlight

  • AREA (str) – Area light with defined shape

POINT = 'POINT'
SUN = 'SUN'
SPOT = 'SPOT'
AREA = 'AREA'
class LightData(pos_world, rot_world, energy, type=LightType.POINT, shadow_soft_size=1.5)[source]

Bases: object

Configuration data for a light source in Blender.

This dataclass stores the position, orientation, intensity, and type information for scene lighting.

pos_world

Position of the light in world coordinates (x, y, z)

rot_world

Rotation of the light in world space (scipy Rotation object)

energy

Light intensity in Watts

__init__(pos_world, rot_world, energy, type=LightType.POINT, shadow_soft_size=1.5)
type

POINT)

Type:

Type of light source (default

shadow_soft_size

1.5)

Type:

Size of the light for soft shadow calculation (default