blender/release/scripts/presets/sunsky/desert.py
Lukas Tönne cf3bb40c62 Fix T41081: Presets not working on pinned properties panels.
Preset operators should avoid using `bpy.context.object.data` as a base
path to properties. This path is not available in the buttons context
when using pinned datablocks! Instead use the specific
`bpy.context.camera` and `bpy.context.lamp.sky` paths now, which lead to
the correct datablocks in any case.
2014-07-18 11:37:57 +02:00

15 lines
607 B
Python

import bpy
bpy.context.lamp.sky.atmosphere_turbidity = 6.0
bpy.context.lamp.sky.sky_blend_type = 'ADD'
bpy.context.lamp.sky.sky_blend = 1.0
bpy.context.lamp.sky.horizon_brightness = 4.99999761581
bpy.context.lamp.sky.spread = 1.49011614159e-09
bpy.context.lamp.sky.sky_color_space = 'SMPTE'
bpy.context.lamp.sky.sky_exposure = 1.0
bpy.context.lamp.sky.sun_brightness = 1.00000011921
bpy.context.lamp.sky.sun_size = 4.0
bpy.context.lamp.sky.backscattered_light = 1.0
bpy.context.lamp.sky.sun_intensity = 1.0
bpy.context.lamp.sky.atmosphere_inscattering = 1.0
bpy.context.lamp.sky.atmosphere_extinction = 1.0