-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathOpenCVAnim.py
More file actions
24 lines (18 loc) · 715 Bytes
/
OpenCVAnim.py
File metadata and controls
24 lines (18 loc) · 715 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
import bpy
class OBJECT_MT_OpenCVPanel(bpy.types.WorkSpaceTool):
"""Creates a Panel in the Object properties window"""
bl_label = "OpenCV Animation"
bl_space_type = 'VIEW_3D'
bl_context_mode='OBJECT'
bl_idname = "ui_plus.opencv"
bl_options = {'REGISTER'}
bl_icon = "ops.generic.select_circle"
def draw_settings(context, layout, tool):
row = layout.row()
op = row.operator("wm.opencv_operator", text="Capture", icon="OUTLINER_OB_CAMERA")
def register():
bpy.utils.register_tool(OBJECT_MT_OpenCVPanel, separator=True, group=True)
def unregister():
bpy.utils.unregister_tool(OBJECT_MT_OpenCVPanel)
if __name__ == "__main__":
register()