"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.93.1/release/scripts/addons/presets/pov/light/21_(2700K)_7W_OLED_Panel.py" (22 Apr 2021, 562 Bytes) of package /linux/misc/blender-2.93.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #since 2025
    2 #inspired by OSRAM Early Future / IKEA Vitsand / OTI Lumionics Aerelight
    3 
    4 import bpy
    5 bpy.context.object.data.type = 'AREA'
    6 lampdata = bpy.context.object.data
    7 
    8 lampdata.size = 0.033
    9 lampdata.size_y = 0.133
   10 lampdata.shadow_ray_samples_x = 2
   11 lampdata.shadow_ray_samples_y = 2
   12 lampdata.color = (1.0, 0.8292156958580017, 0.6966666865348816)
   13 lampdata.energy = 0.83932#900lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
   14 lampdata.distance = 1.18 #dist values multiplied by 10 for area lights for same power as bulb/spot/...