<div dir="ltr"><div><div><div><div>Hi Peter,<br><br></div>I had a similar problem when writing an exporter for Sketchfab. The uploading part to their website can take a long time (depending on the filesize) and during that time Blender froze. I solved that by using threading.<br>
</div>The basic idea is to do the up/downloading in a separate thread. Then I added a timer and a modal operator which is set to PASS_THROUGH. Every time the modal operator is called from the timer, it checks if the up/downloading thread is still alive. If not (because it's finished or experienced an error), it sets in motion the further actions that need  to be taken.<br>
<br></div>For an example, you can take a look at the Sketchfab add-on code*, specifically the ExportSketchfab operator class (approximately line 250).<br><br></div><div>Best,<br></div><div>Bart<br><br>* <a href="https://sites.google.com/site/bartiuscrouch/scripts/sketchfab">https://sites.google.com/site/bartiuscrouch/scripts/sketchfab</a><br>
</div></div>