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

16_(2100K)_150W_High_Pressure_Sodium.py « light « pov « presets - git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ddb32cb43f078f8b439729386c414d12ef215c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#Starting from 1964

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

lampdata.show_cone = True
lampdata.color = (1.0, 0.772549033164978, 0.5607843399047852)
lampdata.energy = 4.47636#12000lm/21.446(=lux)*0.004(distance) *2 for distance is the point of half strength
lampdata.distance = 1.0
lampdata.spot_size = 1.9
lampdata.spot_blend = 0.9
lampdata.falloff_type = 'INVERSE_SQUARE'