-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathproperties.py
78 lines (69 loc) · 1.55 KB
/
properties.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
66
67
68
69
70
71
72
73
74
75
76
77
78
from bpy.types import PropertyGroup
from bpy.props import (
IntProperty,
FloatProperty,
EnumProperty,
StringProperty,
)
class UvToolkitProperties(PropertyGroup):
checker_map_width: IntProperty(
name="Width",
min=0
)
checker_map_height: IntProperty(
name="Height",
min=0
)
move_distance: FloatProperty(
name="Distance",
default=1.0,
min=0,
step=0.1,
)
island_rotation_angle: IntProperty(
name="Angle",
default=90,
min=0,
)
island_rotation_mode: EnumProperty(
name="Rotation Mode",
description="Current rotation mode",
items=[
("GLOBAL", "G", "Global rotation"),
("LOCAL", "L", "Local rotation"),
],
default="LOCAL",
)
align_mode: EnumProperty(
name="Mode",
items=[
("VERTICES", "Vertices", ""),
("ISLANDS", "Islands", "")
],
)
island_scale_x: FloatProperty(
name="X",
default=1,
)
island_scale_y: FloatProperty(
name="Y",
default=1,
)
island_scale_mode: EnumProperty(
name="Scale Mode",
description="Current scale mode",
items=[
("GLOBAL", "G", "Global scale"),
("LOCAL", "L", "Local scale"),
],
default="GLOBAL",
)
uv_layer_name: StringProperty(
name="",
)
uv_layer_index: IntProperty(
name="",
description="Channel",
min=1,
default=1,
)