-
Notifications
You must be signed in to change notification settings - Fork 12
/
prefs.py
65 lines (50 loc) · 3.9 KB
/
prefs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import bpy
debug = False
class UVHIGHLIGHT_PREFS(bpy.types.AddonPreferences):
bl_idname = __package__
max_verts = bpy.props.IntProperty("Max Verts", default=500000)
view3d_selection_color_verts_edges = bpy.props.FloatVectorProperty(name="view3d_selection_color_verts_edges",
subtype="COLOR",
default=(0, 1.0, 1.0, 1.0),
size=4)
view3d_preselection_color_verts_edges = bpy.props.FloatVectorProperty(name="view3d_preselection_color_verts_edges ",
subtype="COLOR",
default=(1.0, 0.0, 0.0, 1.0),
size=4)
view3d_selection_color_faces = bpy.props.FloatVectorProperty(name="view3d_selection_color_faces",
subtype="COLOR",
default=(0, 1.0, 1.0, 0.4),
size=4)
view3d_preselection_color_faces = bpy.props.FloatVectorProperty(name="view3d_preselection_color_faces",
subtype="COLOR",
default=(0.15, 0.15, 0.15, 1.0),
size=4)
uv_preselection_color_verts_edges = bpy.props.FloatVectorProperty(name="uv_preselection_color_verts_edges",
subtype="COLOR",
default=(1.0, 1.0, 1.0, 1.0),
size=4)
uv_preselection_color_faces = bpy.props.FloatVectorProperty(name="uv_preselection_color_faces",
subtype="COLOR",
default=(0.15, 0.15, 0.15, 1.0),
size=4)
uv_hidden_faces = bpy.props.FloatVectorProperty(name="uv_hidden_faces",
subtype="COLOR",
default=(0.15, 0.15, 0.15, 1.0),
size=4)
udim_markers = bpy.props.FloatVectorProperty(name="udim_markers",
subtype="COLOR",
default=(1.0, 1.0, 1.0, 0.25),
size=4)
def draw(self, context):
layout = self.layout
row = layout.row()
col = row.column()
col.prop(self, "max_verts", text="Maximum verts")
col.prop(self, "view3d_selection_color_verts_edges", text="3D View uv verts/edges selection")
col.prop(self, "view3d_preselection_color_verts_edges", text="3D View uv verts/edges pre-selection")
col.prop(self, "view3d_selection_color_faces", text="3D View uv faces selection")
col.prop(self, "view3d_preselection_color_faces", text="3D View uv faces pre-selection")
col.prop(self, "uv_preselection_color_verts_edges", text="Image Editor verts/edges pre-selection")
col.prop(self, "uv_preselection_color_faces", text="Image Editor faces/islands pre-selection")
col.prop(self, "uv_hidden_faces", text="Image Editor non selected faces")
col.prop(self, "udim_markers", text="Image Editor UDIM tiles and label")