-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
41 lines (37 loc) · 1.04 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
import bpy
from .modules.key_binding import *
from .modules.operators import *
from .modules.menus import *
bl_info = {
"name" : "QuickKey",
"author" : "extorc",
"description" : "",
"blender" : (2, 80, 0),
"version" : (1, 0, 0),
"category" : "Generic"
}
classes = [
QUICKKEY_OT_x_loc_insert_key_frame,
QUICKKEY_OT_y_loc_insert_key_frame,
QUICKKEY_OT_z_loc_insert_key_frame,
QUICKKEY_OT_x_rot_insert_key_frame,
QUICKKEY_OT_y_rot_insert_key_frame,
QUICKKEY_OT_z_rot_insert_key_frame,
QUICKKEY_OT_x_scale_insert_key_frame,
QUICKKEY_OT_y_scale_insert_key_frame,
QUICKKEY_OT_z_scale_insert_key_frame,
QUICKKEY_MT_insert_menu_call,
QUICKKEY_MT_main_menu,
QUICKKEY_OT_call_menu,
QUICKY_MT_insert_loc_menu,
QUICKY_MT_insert_rot_menu,
QUICKY_MT_insert_scale_menu
]
def register():
for c in classes:
bpy.utils.register_class(c)
key_map(QUICKKEY_OT_call_menu,"D","ctrl")
def unregister():
for c in classes:
bpy.utils.unregister_class(c)
remove_key_map()