1
- 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
2
- from .properties import BSEQ_scene_property , BSEQ_obj_property ,BSEQ_mesh_property
1
+ 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
2
+ from .properties import BSEQ_scene_property , BSEQ_obj_property , BSEQ_mesh_property
3
3
from .panels import BSEQ_UL_Obj_List , BSEQ_List_Panel , BSEQ_Settings , BSEQ_Import , BSEQ_Templates , BSEQ_UL_Att_List , draw_template
4
4
from .messenger import subscribe_to_selected , unsubscribe_to_selected
5
5
import bpy
6
6
from bpy .app .handlers import persistent
7
7
from .importer import update_obj
8
8
from datetime import datetime
9
+ import os
9
10
10
11
11
12
def print_information (scene ):
@@ -14,6 +15,9 @@ def print_information(scene):
14
15
now = datetime .now ()
15
16
path = bpy .context .scene .render .filepath
16
17
path = bpy .path .abspath (path )
18
+ if not os .path .isdir (path ):
19
+ # by default, path is '/tmp', and it does not exist on windows system
20
+ return
17
21
filepath = path + '/bseq_' + now .strftime ("%Y-%m-%d_%H-%M" )
18
22
with open (filepath , 'w' ) as file :
19
23
file .write ("Render Time: {}\n " .format (now .strftime ("%Y-%m-%d_%H-%M" )))
0 commit comments