"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.92.0-linux64/2.92/scripts/addons/presets/pov/light/05_(4000K)_100W_Metal_Halide.py" (13 Jan 2021, 603 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 #After 1962
    2 #Common uses: outdoor lighting where good color rendering is needed, television/film lighting, sports fields, car headlights, flood lights, heavy flashlights, green house applications
    3 
    4 import bpy
    5 bpy.context.object.data.type = 'SPOT'
    6 lampdata = bpy.context.object.data
    7 
    8 lampdata.show_cone = True
    9 lampdata.spot_size = 0.6
   10 lampdata.spot_blend = 0.9
   11 lampdata.color = (0.9490196108818054, 0.9882352948188782, 1.0)
   12 lampdata.energy = 20.98293#9000lm/21.446(=lux)*0.004*6.25(distance) *2 for distance is the point of half strength
   13 lampdata.distance = 0.025
   14 lampdata.falloff_type = 'INVERSE_SQUARE'