"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.92.0-linux64/2.92/scripts/addons/presets/pov/light/19_(5200K)_700W_Carbon_Arc.py" (13 Jan 2021, 818 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 #Starting from 1876 (first type of commercial lamps developed with electricity)
    2 #Carbon arc lamps were being phased out after the 1910s.
    3 #For general lighting the lamp was replaced by the 1920s and 30s in most cities.
    4 #The lamp continued to be used for spot lights, film production lighting and film projector lamps.
    5 #Most of the remaining carbon arc lamps ceased production by the 1980s
    6 
    7 import bpy
    8 bpy.context.object.data.type = 'SPOT'
    9 lampdata = bpy.context.object.data
   10 
   11 #lampdata.use_halo = True
   12 lampdata.show_cone = True
   13 lampdata.spot_size = 1.5
   14 lampdata.spot_blend = 0.3
   15 lampdata.color = (1.0, 0.9803921580314636, 0.95686274766922)
   16 lampdata.energy = 51.29162#55000lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
   17 lampdata.distance = 0.01
   18 lampdata.falloff_type = 'INVERSE_SQUARE'