-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
42 lines (30 loc) · 918 Bytes
/
__init__.py
File metadata and controls
42 lines (30 loc) · 918 Bytes
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
import bpy
from . rigging_helpers import (SRT_PT_RiggingHelperPanel, SRT_OT_CreateTargetBone)
from . root_properties import (SRT_PT_RootProperties)
bl_info = {
"name": "Sam's Rigging Helpers",
"author": "Samuele Panzeri",
"version": (1, 0, 0),
"blender": (3, 0, 0),
"location": "View3d > Tool",
"warning": "Use at your own risk",
"wiki_url": "",
"category": "Rigging"
}
classes = (
SRT_PT_RiggingHelperPanel,
SRT_OT_CreateTargetBone,
SRT_PT_RootProperties
)
def menu_func(self, context):
self.layout.operator(SRT_OT_CreateTargetBone.bl_idname)
def register():
for cls in classes:
bpy.utils.register_class(cls)
bpy.types.VIEW3D_MT_edit_armature.append(menu_func)
def unregister():
for cls in classes:
bpy.utils.unregister_class(cls)
bpy.types.VIEW3D_MT_edit_armature.remove(menu_func)
if __name__ == "__main__":
register()