5
$\begingroup$

I recently changed the lighting in the viewport in the system preferences.

enter image description here

How can I rest the positions of the lights? The Reset to Default Value does not work. it simple sets them all to a top light.

How can I reset the direction of the lamps without restoring factory defaults?

$\endgroup$
  • $\begingroup$ This is really inconsistent, by having it reset to this, one would think that these are the true defaults and the actual startup has modified values. Perhaps open a ticket? $\endgroup$ – iKlsR Mar 15 '14 at 0:39
  • $\begingroup$ @iKlsR I will post a bug report $\endgroup$ – Vader Mar 15 '14 at 1:13
  • $\begingroup$ @Vader This is a known issue, see my answer here. $\endgroup$ – gandalf3 Mar 15 '14 at 18:43
2
$\begingroup$

You can find the defaults by opening a new instance of blender and loading the defaults (without saving the default.blend) and using python to get the default values:

import bpy

for light in bpy.context.user_preferences.system.solid_lights:
    print(light.direction)

Which will print:

<Vector (-0.8920, 0.3000, 0.9000)>
<Vector (0.5880, 0.4600, 0.2480)>
<Vector (0.2160, -0.3920, -0.2160)>

So to set the light directions to the defaults, run:

import bpy

bpy.context.user_preferences.system.solid_lights[0].direction = (-0.892, 0.3, 0.9)
bpy.context.user_preferences.system.solid_lights[1].direction = (0.5880, 0.4600, 0.2480)
bpy.context.user_preferences.system.solid_lights[2].direction = (0.2160, -0.3920, -0.2160)
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.