1#since 2008 2 3import bpy 4bpy.context.object.data.type = 'SPOT' 5lampdata = bpy.context.object.data 6 7lampdata.show_cone = True 8lampdata.spot_size = 1.39626 #80 degrees in radian 9lampdata.spot_blend = 0.5 10lampdata.color = (1.0, 0.9372549057006836, 0.9686274528503418) 11lampdata.energy = 1.39886#1500lm/21.446(=lux)*0.004*2.5(distance) *2 for distance is the point of half strength 12lampdata.distance = 1.18 #dist values multiplied by 10 for area lights for same power as bulb/spot/... 13