下面的代码应该创建两个线程。第一个1,然后在另一个完成第二个之后。你知道吗
import bpy
import os
import subprocess
import texturechange1
import texturechange2
import threading
#run texture changes and save files
t1 = threading.Thread(target = texturechange1)
t2 = threading.Thread(target = texturechange2)
t1.start()
t1.join()
t2.start()
t2.join()
texturechange1
和texturechange2
是python脚本,用于更改给定对象的纹理并保存blender文件。你知道吗
它们都有命令bpy.ops.export.sketchfab()
,该命令创建一个单独的线程上传到sketchfab。你知道吗
错误在于,texturechange1
和texturechange2
更改纹理并保存各自的文件,而texturechange2
是唯一上载到sketchfab的文件。texturechange1
的给定错误为:
please wait till current upload is finished
有没有办法将join()
应用于其他线程创建的所有线程?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐