"Fossies" - the Fresh Open Source Software Archive

Member "blender-2.92.0-linux64/2.92/scripts/addons/presets/pov/light/16_(2100K)_150W_High_Pressure_Sodium.py" (13 Jan 2021, 419 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 1964
    2 
    3 import bpy
    4 bpy.context.object.data.type = 'SPOT'
    5 lampdata = bpy.context.object.data
    6 
    7 lampdata.show_cone = True
    8 lampdata.color = (1.0, 0.772549033164978, 0.5607843399047852)
    9 lampdata.energy = 4.47636#12000lm/21.446(=lux)*0.004(distance) *2 for distance is the point of half strength
   10 lampdata.distance = 1.0
   11 lampdata.spot_size = 1.9
   12 lampdata.spot_blend = 0.9
   13 lampdata.falloff_type = 'INVERSE_SQUARE'