python - joining external threads blender -
the following code supposed create 2 threads. first 1, after other has finished second.
import bpy import os import subprocess import texturechange1 import texturechange2 import threading #run texture changes , save files t1 = threading.thread(target = texturechange1) t2 = threading.thread(target = texturechange2) t1.start() t1.join() t2.start() t2.join() texturechange1and texturechange2 python scripts change texture of given object , save blender file.
they each have command bpy.ops.export.sketchfab(), creates separate thread uploading sketchfab.
the error that, whereas texturechange1and texturechange2 change texture , save respective files, texturechange2is 1 uploaded sketchfab. given error texturechange1is:
please wait till current upload finished
is there way of applying join()to threads created other threads?
Comments
Post a Comment