13
$\begingroup$

When I work in edit mode and wireframe I have difficulty to visualize the loops of the object. How can I change the background color of the viewport or the color of the wires? Thanks, Dov

$\endgroup$
2
  • 4
    $\begingroup$ You can change all the colors in the user preferences. Go to the file menu, then user preferences. In the "themes" tab, you'll find several presets and a way to customize each part of the UI $\endgroup$
    – lemon
    Feb 25, 2017 at 15:45
  • $\begingroup$ You may want to update the selected answer, pointing to the one applicable to recent versions. $\endgroup$
    – mins
    Apr 18 at 10:05

4 Answers 4

10
$\begingroup$

You can change the background color by going to: User Preferences > Theme > 3D View > Theme Background Color > Gradient High/Off

Note: CTRL + ALT + U opens user preferences immediately.

Where

What

You can also change the color of the wire by using Wire and Wire Edit in the same menu.

$\endgroup$
1
  • 1
    $\begingroup$ In 2.8, its Edit -> Preferences -> Themes -> 3D viewport -> Theme space -> Gradient colors. $\endgroup$ Jul 27, 2020 at 16:08
6
$\begingroup$

In Blender 2.8 go to Blender Prefs/Themes/3D Viewport. In the top you find the Wire Colors.

If you want to change BG-Color, go to Blender Prefs/Themes/3D Viewport and scroll down to Gradient Colors.

Wire Color

Gradient Colors

$\endgroup$
1
  • $\begingroup$ Thanks, this should be the new selected answer. Someone may want to write a plugin for UI customization, allowing the user to select the element to change directly on the interface, instead of trying to force them to find an improbable name in the preferences. $\endgroup$
    – mins
    Apr 18 at 10:02
2
$\begingroup$

To change the background color in script you can do something like that:

bpy.context.user_preferences.themes[0].view_3d.space.gradients.high_gradient = new_color
$\endgroup$
2
  • 1
    $\begingroup$ for 2.8 it would be.. bpy.context.preferences.themes[0].view_3d.space.gradients.high_gradient = new_color $\endgroup$
    – sreenivas
    Mar 24, 2019 at 17:14
  • $\begingroup$ For 2.9: bpy.context.preferences.themes['Default'].view_3d. ... $\endgroup$
    – brita_
    Sep 5, 2020 at 18:33
1
$\begingroup$

As in Blender 2.93, Atkay's answer still applies in order to change 3D viewport's background color from GUI.

To do this programmatically, sreenivas' comment to this answer works pretty well:

bpy.context.preferences.themes[0].view_3d.space.gradients.high_gradient = new_color

To define a new color, you just define its 3 component's values like (r, g, b), with values in the range [0, 1]

NOTE: Using ...themes['Default']..., as commented in a previous answer, makes Blender crash.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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