blenderlightdata.py¶
- class LightType(value)[source]¶
Bases:
EnumEnumeration of available light types in Blender.
- Variables:
- 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:
objectConfiguration 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