-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path__init__.py
More file actions
70 lines (65 loc) · 2.92 KB
/
__init__.py
File metadata and controls
70 lines (65 loc) · 2.92 KB
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
from .utils import refresh_obj
from .operators import BSEQ_OT_load, BSEQ_OT_edit, BSEQ_OT_resetpt, BSEQ_OT_resetmesh, BSEQ_OT_resetins, BSEQ_OT_set_as_split_norm, BSEQ_OT_remove_split_norm, BSEQ_OT_disable_selected, BSEQ_OT_enable_selected, BSEQ_OT_refresh_seq, BSEQ_OT_disable_all, BSEQ_OT_enable_all, BSEQ_OT_refresh_sequences, BSEQ_OT_set_start_end_frames, BSEQ_OT_batch_sequences, BSEQ_PT_batch_sequences_settings, BSEQ_OT_meshio_object, BSEQ_OT_import_zip, BSEQ_OT_delete_zips, BSEQ_addon_preferences, BSEQ_OT_load_all, BSEQ_OT_load_all_recursive
from .properties import BSEQ_scene_property, BSEQ_obj_property, BSEQ_mesh_property
from .panels import BSEQ_UL_Obj_List, BSEQ_List_Panel, BSEQ_Settings, BSEQ_PT_Import, BSEQ_PT_Import_Child1, BSEQ_PT_Import_Child2, BSEQ_Globals_Panel, BSEQ_Advanced_Panel, BSEQ_Templates, BSEQ_UL_Att_List, draw_template
from .messenger import subscribe_to_selected, unsubscribe_to_selected
from .callback import load_obj
from .globals import *
import bpy
from bpy.app.handlers import persistent
@persistent
def BSEQ_initialize(scene):
if load_obj not in bpy.app.handlers.frame_change_post:
# Insert at the beginning, so that it runs before other frame change handlers.
# The other handlers don't need to be in the first position.
bpy.app.handlers.frame_change_post.insert(0, load_obj)
if auto_refresh_active not in bpy.app.handlers.frame_change_post:
bpy.app.handlers.frame_change_post.append(auto_refresh_active)
if auto_refresh_all not in bpy.app.handlers.frame_change_post:
bpy.app.handlers.frame_change_post.append(auto_refresh_all)
if clean_unused_bseq_data not in bpy.app.handlers.save_pre:
bpy.app.handlers.save_pre.append(clean_unused_bseq_data)
subscribe_to_selected()
if print_information not in bpy.app.handlers.render_init:
bpy.app.handlers.render_init.append(print_information)
__all__ = [
"BSEQ_OT_edit",
"BSEQ_OT_load",
"BSEQ_obj_property",
"BSEQ_initialize",
"BSEQ_PT_Import",
"BSEQ_PT_Import_Child1",
"BSEQ_PT_Import_Child2",
"BSEQ_Globals_Panel",
"BSEQ_List_Panel",
"BSEQ_UL_Obj_List",
"BSEQ_scene_property",
"BSEQ_Templates",
"BSEQ_Settings",
"BSEQ_Advanced_Panel",
"BSEQ_UL_Att_List",
"subscribe_to_selected",
"BSEQ_OT_resetpt",
"BSEQ_OT_resetmesh",
"BSEQ_OT_resetins",
"draw_template",
"unsubscribe_to_selected",
"BSEQ_OT_set_as_split_norm",
"BSEQ_mesh_property",
"BSEQ_OT_remove_split_norm",
"BSEQ_OT_disable_selected",
"BSEQ_OT_enable_selected",
"BSEQ_OT_refresh_seq",
"BSEQ_OT_disable_all",
"BSEQ_OT_enable_all",
"BSEQ_OT_refresh_sequences",
"BSEQ_OT_set_start_end_frames",
"BSEQ_OT_batch_sequences",
"BSEQ_PT_batch_sequences_settings",
"BSEQ_OT_meshio_object",
"BSEQ_OT_import_zip",
"BSEQ_OT_delete_zips",
"BSEQ_addon_preferences",
"BSEQ_OT_load_all",
"BSEQ_OT_load_all_recursive"
]