start rename around course section

This commit is contained in:
coco875
2024-04-17 01:11:27 +02:00
parent ed0dfcc4a3
commit ddfbc67714
16 changed files with 254 additions and 420 deletions
+8 -3
View File
@@ -38,10 +38,15 @@ for model in models:
args_blender.append(file)
args_blender.append(obj)
args_blender.append(out_file)
subprocess.run([blender]+args_blender)
result = subprocess.run([blender]+args_blender)
if result.returncode != 0:
failed.append(out_file)
args_blender.pop()
args_blender.pop()
args_blender.pop()
print("Failed to export:")
print("\n".join(failed))
if len(failed) == 0:
print("All models exported successfully")
else:
print("Failed to export:")
print("\n".join(failed))