"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.93.1/release/scripts/addons/presets/pov/light/06_(3200K)_100W_Quartz_Halogen.py" (22 Apr 2021, 759 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 1960, no longer manufactured since 2016
    2 #8mm projectors
    3 #used in many automobiles headlamps ; outdoor lighting systems ; watercraft ; desktop lamps (smaller power).
    4 #theatrical and studio (film and television) fixtures, including Ellipsoidal reflector spotlights, Source Four, and Fresnels; PAR Cans
    5 
    6 import bpy
    7 bpy.context.object.data.type = 'SPOT'
    8 lampdata = bpy.context.object.data
    9 
   10 lampdata.show_cone = True
   11 lampdata.spot_size = 1.9
   12 lampdata.spot_blend = 0.9
   13 lampdata.color = (1.0, 0.9450980424880981, 0.8784313797950745)
   14 lampdata.energy = 12.43433#5000/21.446 #lumen values/20 or lux when available used as a basis
   15 lampdata.distance = 0.015#energy calculated for length 0.075 but width gives better result
   16 lampdata.falloff_type = 'INVERSE_SQUARE'