-
Notifications
You must be signed in to change notification settings - Fork 4
/
__init__.py
60 lines (37 loc) · 1.42 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
import bpy
from bpy.props import (PointerProperty)
from .econ_blender import *
from . panel import *
bl_info = {
"name" : "CEB ECON",
"author" : "YuliangXiu, Carlos Barreto, Lee KwanJoong",
"description" : "",
"blender" : (3, 3, 1),
"version" : ("KJ", 0, 8, 0),
"location" : "UI > SidePanel",
"warning" : "",
"category" : "General"
}
classes = (ECONMySettings,ECON_PT_installation_panel
,CreateVirtualEnviroment,InstallSTLOnVenv,VenvPathSelect,InstallCompiler,ExecutePrompt
,UseHDRI,OpenOutputFolder
,DownloadECON,DownloadPytorch3d,ExecuteECON,ImportImage,DownloadModels,FinishECONInstall
,EnableButton,OpenBlenderWithConsole
,ECON_SaveConfig, ExecuteAvatarizer, ECON_PT_generatation_panel, DownloadTEXTure, ExecuteTEXTure)
# ,ShowVertexColorTexture)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.econ_prop = PointerProperty(type=ECONMySettings)
bpy.types.Scene.ceb_econ_img_path = bpy.props.BoolProperty(default=False)
bpy.types.Scene.ceb_econ_venv = 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.econ_prop
del bpy.types.Scene.ceb_econ_img_path
del bpy.types.Scene.ceb_econ_venv
if __name__ == "__main__":
register()