forked from carlosedubarreto/b3d_mocap_import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
79 lines (65 loc) · 3.02 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# beta 0.76
# - add installation for Opencv2
bl_info = {
"name" : "MOCAP Import",
"author" : "Carlos Barreto",
"description" : "Addon to import data from Easymocap, Frankmocap, Vibe and Google Mediapipe",
"blender" : (2, 90, 0),
"version" : (0, 0, 76),
"location" : "3dView > Sidebar(N panel)",
"warning" : "",
"category" : "Animation"
}
global VERSION
VERSION = 'b 0.76'
import bpy
from bpy.props import (#StringProperty,
# BoolProperty,
IntProperty,
FloatProperty,
# FloatVectorProperty,
# EnumProperty,
PointerProperty,
)
from . load_mocap import *
from . panel import Test_PT_Panel, MySettings#, Install_PT_Panel#, Modify_PT_Panel,Debug_PT_Panel
from . mediapipe_new import *
classes = (Import_Data_easymocap, Test_PT_Panel, OT_TestOpenFilebrowser,Import_Data_frankmocap,Import_Data_frankmocap_alter,Import_Data_vibe,Mediapipe_Pose_estimation,
Install_Mediapipe,Install_Joblib,MySettings,Install_cv2,#Install_PT_Panel,Convert_axis,Reset_location,Reset_rotation,Foot_high,
Compensate_Rotation,Smooth_Bone, Reload_sk_easymocap, Import_SMPL_easymocap,
Path_SMPL_FBX_File,Audio2face_Import,Audio2face_Export,
Audio2face_Import_to_NLA, Audio2face_delete_action_shapekey_nla,
Delete_unused_NLA_SK_tracks,
MP_preview,Transfer_Angles,update_bone_size,Hand_mocap
)#,Modify_PT_Panel,Debug_PT_Panel
# register, unregister = bpy.utils.register_classes_factory(classes)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
# bpy.types.Scene.my_tool = PointerProperty(type=MySettings)
bpy.types.Scene.sk_value_prop = PointerProperty(type=MySettings)
bpy.types.Scene.expand_audio2face = bpy.props.BoolProperty(default=True)
bpy.types.Scene.mediapipe = bpy.props.BoolProperty(default=True)
bpy.types.Scene.older_tools = bpy.props.BoolProperty(default=False)
bpy.types.Scene.install_py = bpy.props.BoolProperty(default=False)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.sk_value_prop
if __name__ == "__main__":
register()
# bpy.types.Scene.percentage = PointerProperty(type=MySettingsPerc)