"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.93.1/release/scripts/addons/presets/pov/light/17_(1700K)_135W_Low_Pressure_Sodium.py" (22 Apr 2021, 464 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 #(1700K) 135W Low Pressure Sodium Vapor Starting from 1932
    2 #Mostly used for Outdoor city lighting, security lighting, long tunnel lighting
    3 
    4 import bpy
    5 bpy.context.object.data.type = 'POINT'
    6 lampdata = bpy.context.object.data
    7 
    8 lampdata.color = (1.0, 0.5764706134796143, 0.16078431904315948)
    9 lampdata.energy = 8.43048#22600lm/21.446(=lux)*0.004(distance) *2 for distance is the point of half strength
   10 lampdata.distance = 1.0
   11 lampdata.falloff_type = 'INVERSE_SQUARE'