"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.92.0-linux64/2.92/scripts/addons/presets/pov/light/12_(4200K)_18W_Cool_White_Fluorescent_T8.py" (13 Jan 2021, 573 Bytes) of package /linux/misc/blender-2.92.0-linux64.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 #Available since 1979
    2 #more common than the warm white
    3 
    4 import bpy
    5 bpy.context.object.data.type = 'AREA'
    6 lampdata = bpy.context.object.data
    7 
    8 lampdata.size = 0.026
    9 lampdata.size_y = 0.59
   10 lampdata.shadow_ray_samples_x = 1
   11 lampdata.shadow_ray_samples_y = 2
   12 lampdata.color = (0.8313725590705872, 0.9215686321258545, 1.0)
   13 lampdata.energy = 1.25898#1350lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
   14 lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
   15 #lampdata.falloff_type = 'INVERSE_SQUARE'