-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
95 lines (74 loc) · 1.96 KB
/
__init__.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
from . import (
ops,
ui,
gizmo,
props,
update,
msgbus,
translate,
preferences,
)
bl_info = {
"name": "Simple Deform Helper",
"author": "AIGODLIKE Community:小萌新",
"version": (0, 2, 4),
"blender": (4, 0, 0),
"location": "3D View -> Select an object and the active modifier is "
"simple deformation",
"description": "Simple Deform visualization adjustment tool",
"doc_url": "https://gitee.com/AIGODLIKE/simple_deform_helper/wikis",
"category": "AIGODLIKE"
}
"""
TODO 文本的修改器支侍,暂时未找到解决方法获取原始加界框
Text modifier support , have not yet found a solution to get the original bounding box
# -------------------------
__init__.py:
Register All Module
gizmo/__init__.py:
Register All Gizmo
/angle_and_factor.py:
Ctrl Modifier Angle
/bend_axis.py:
Bend Method Switch Direction Gizmo
/set_deform_axis.py:
Three Switch Deform Axis Operator Gizmo
/up_down_limits_point.py:
Main control part
use utils.py PublicProperty._get_limits_point_and_bound_box_co
Obtain and calculate boundary box and limit point data
draw.py:
Draw 3D Bound And Line
gizmo.json:
Draw Custom Shape Vertex Data
operator.py:
Set Deform Axis Operator
panel.py:
Draw Gizmo Tool Property in Options and Tool Settings Right
preferences.py:
Addon Preferences
translate.py:
temporary only Cn translate
update.py:
In Change Depsgraph When Update Addon Data And Del Redundant Empty
utils.py:
Main documents used
Most computing operations are placed in classes GizmoUtils
# -------------------------
"""
module_tuple = (
ops,
ui,
gizmo,
props,
update,
msgbus,
translate,
preferences,
)
def register():
for item in module_tuple:
item.register()
def unregister():
for item in module_tuple:
item.unregister()