@@ -197,14 +197,13 @@ def create_meshio_obj(filepath):
197
197
bpy .ops .import_scene .obj (filepath = filepath )
198
198
# Substract all previous items from the current items and print their names
199
199
imported_objs = set (bpy .context .scene .objects ) - objs
200
- print (", " .join (o .name for o in imported_objs ))
201
200
202
201
# Check if the imported object worked correctly
203
202
if len (imported_objs ) == 1 :
204
203
obj = imported_objs .pop ()
205
204
else :
206
205
show_message_box ("Error when reading: " + filepath + ",\n " + traceback .format_exc (),
207
- "obj. Loading Error" ,
206
+ "obj. Loading Error in create_meshio_obj " ,
208
207
icon = "ERROR" )
209
208
return
210
209
@@ -235,14 +234,13 @@ def create_obj(fileseq, root_path, transform_matrix=Matrix([[1, 0, 0, 0], [0, 1,
235
234
bpy .ops .import_scene .obj (filepath = filepath )
236
235
# Substract all previous items from the current items and print their names
237
236
imported_objs = set (bpy .context .scene .objects ) - objs
238
- print (", " .join (o .name for o in imported_objs ))
239
237
240
238
# Check if the imported object worked correctly
241
239
if len (imported_objs ) == 1 :
242
240
tmp_obj = imported_objs .pop ()
243
241
else :
244
242
show_message_box ("Error when reading: " + filepath + ",\n " + traceback .format_exc (),
245
- "obj. Loading Error" ,
243
+ "obj. Loading Error in create_obj " ,
246
244
icon = "ERROR" )
247
245
return
248
246
@@ -273,7 +271,6 @@ def create_obj(fileseq, root_path, transform_matrix=Matrix([[1, 0, 0, 0], [0, 1,
273
271
object = bpy .data .objects .new (name , mesh )
274
272
275
273
# create the object
276
- print ("File path: " + filepath )
277
274
if bpy .path .is_subdir (filepath , bpy .path .abspath ("//" )):
278
275
if root_path != "" :
279
276
object .BSEQ .pattern = bpy .path .relpath (str (fileseq ), start = root_path )
@@ -327,25 +324,24 @@ def update_obj(scene, depsgraph=None):
327
324
if pattern .endswith (".obj" ) and scene .BSEQ .use_blender_obj_import :
328
325
filepath = fs [current_frame % len (fs )]
329
326
330
- print ("File path update: " + filepath )
331
-
332
327
# Save all current objects
333
328
objs = set (scene .objects )
329
+
334
330
# Reload the object
335
331
bpy .ops .import_scene .obj (filepath = filepath )
332
+
336
333
# Substract all previous items from the current items and print their names
337
334
imported_objs = set (scene .objects ) - objs
338
- print (", " .join (o .name for o in imported_objs ))
339
335
340
336
# Check if the imported object worked correctly
341
337
if len (imported_objs ) == 1 :
342
338
new_tmp_obj = imported_objs .pop ()
343
339
else :
344
340
show_message_box ("Error when reading: " + filepath + ",\n " + traceback .format_exc (),
345
- "obj. Loading Error" ,
341
+ "obj. Loading Error in update_obj " ,
346
342
icon = "ERROR" )
347
343
continue
348
-
344
+
349
345
# Copy the data except for material
350
346
if obj .data .materials :
351
347
# assign to 1st material slot
0 commit comments