Btw, I fixed my addon, you can try it in builds after the 54100 rev. I draw a 'progress pie' in the 3D View because last time I tried it was not possible (only with Python) to draw in the correct position in the Panel.
-Daniel On Thu, Jan 24, 2013 at 12:28 PM, Peter D. Cassetta <[email protected] > wrote: > Dalai, Bart, and Daniel, > > Thanks for the help. I'm planning on rewriting my add-on after its next > release (of course recycling old work) because it has a lot of areas which > I'd like to improve before I ask for any type of code review. > > Anyway, I should now be able to implement a much better download system > for my rewritten add-on, which will be a lot nicer for users than the > current one, so thanks again for your advice and suggestions. > > -Peter Cassetta > > > On 01/24/2013 07:43 PM, Daniel Monteiro Basso wrote: > > Hello, > > I think a modal operator is the way to go, yes. Take a look at my > "Carnegie Mellon University Mocap Library Browser", and see how I solved > the same problem. > It is marked as broken, and I can't fix it in the next weeks. But if it > doesn't work for you, use an older Blender version. Or just look at the > code. > > Cheers, > > Daniel > > On Thu, Jan 24, 2013 at 9:53 AM, Bart Crouch <[email protected]>wrote: > >> Hi Peter, >> >> 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. >> 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. >> >> For an example, you can take a look at the Sketchfab add-on code*, >> specifically the ExportSketchfab operator class (approximately line 250). >> >> Best, >> Bart >> >> * https://sites.google.com/site/bartiuscrouch/scripts/sketchfab >> >> _______________________________________________ >> Bf-python mailing list >> [email protected] >> http://lists.blender.org/mailman/listinfo/bf-python >> >> > > > _______________________________________________ > Bf-python mailing > [email protected]http://lists.blender.org/mailman/listinfo/bf-python > > > > _______________________________________________ > Bf-python mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-python > >
_______________________________________________ Bf-python mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-python
