-
Notifications
You must be signed in to change notification settings - Fork 5
/
__init__.py
36 lines (30 loc) · 886 Bytes
/
__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
""" Initialises the Leap Blender Addon. """
import bpy
from . import leap_import
import Leap
import leap_controller
import leap_panel
import sys
from time import sleep
from mathutils import Vector
from bpy.types import Operator
bl_info = {
'name': 'Leap Blender',
'author': 'Jonas Pohlmann & Sebastian Gellweiler',
'category' : '3D View',
}
def add_object_button(self, context):
self.layout.operator(
LeapController.bl_idname,
text=LeapController.__doc__,
icon='PLUGIN')
def register():
bpy.utils.register_class(leap_controller.LeapController)
bpy.utils.register_class(leap_panel.LeapPanel)
bpy.types.VIEW3D_MT_object.append(add_object_button)
print(sys.path)
def unregister():
bpy.utils.unregister_class(leap_controller.LeapController)
bpy.utils.unregister_class(leap_panel.LeapPanel)
if __name__ == "__main__":
register()