Welcome to mirror list, hosted at ThFree Co, Russian Federation.

12_(4200K)_18W_Cool_White_Fluorescent_T8.py « lamp « pov « presets - git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2a0d65d30d2fc582c3a20fc451c5356d7e60734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#Available since 1979
#more common than the warm white

import bpy
bpy.context.object.data.type = 'AREA'
lampdata = bpy.context.object.data

lampdata.size = 0.026
lampdata.size_y = 0.59
lampdata.shadow_ray_samples_x = 1
lampdata.shadow_ray_samples_y = 2
lampdata.color = (0.8313725590705872, 0.9215686321258545, 1.0)
lampdata.energy = 1.25898#1350lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0 #dist values multiplied by 10 for area lights for same power as bulb/spot/...
#lampdata.falloff_type = 'INVERSE_SQUARE'