-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
50 lines (37 loc) · 1.03 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
bl_info = {
"name": "Structura",
"author": "bmpq",
"version": (0, 4, 2),
"location": "View3D > Sidebar > Tools",
"blender": (3, 0, 0),
"category": "3D View"
}
import bpy
from . import (
properties,
ops_structure,
ops_utilities,
ui,
utils
)
classes = [
properties.STRA_PGT_Structure,
properties.STRA_PGT_Joint,
ops_structure.STRA_OT_Generate_Structure,
ops_structure.STRA_OT_Modify_Structure,
ops_utilities.STRA_OT_Select_Joints,
ui.STRA_PT_Joint,
ui.STRA_PT_Utilities
]
def register():
for cls in classes:
bpy.utils.register_class(cls)
bpy.types.Scene.stra_props_structure = bpy.props.PointerProperty(type=properties.STRA_PGT_Structure)
bpy.types.Scene.stra_props_joint = bpy.props.PointerProperty(type=properties.STRA_PGT_Joint)
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
del bpy.types.Scene.stra_props_structure
del bpy.types.Scene.stra_props_joint
if __name__ == "__main__":
register()