Browse Source

构建obj 处理

master
dongchangxi 11 months ago
parent
commit
b6273cb912
  1. 4
      auto_convert3d.py
  2. 1
      blender/resize_model.py

4
auto_convert3d.py

@ -330,10 +330,6 @@ def main(r):
print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), '模型生成程序 start') print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), '模型生成程序 start')
while True: while True:
try: try:
#随机休眠 1- 9
time.sleep(random.uniform(1, 9))
#构建打印文件 #构建打印文件
make3d4print_task(r) make3d4print_task(r)
except Exception as e: except Exception as e:

1
blender/resize_model.py

@ -114,6 +114,7 @@ def main():
height = float(f.split('_')[-2][:-2]) * 10 height = float(f.split('_')[-2][:-2]) * 10
except Exception as e: except Exception as e:
print("eeee",e) print("eeee",e)
bpy.ops.wm.quit_blender()
return return

Loading…
Cancel
Save