From bdb00eeaaa5ac241788dbf524b11a692190fcd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 18 Jan 2017 09:35:23 +0100 Subject: [PATCH] Flamenco: show crude progress when BAM-packing & creating Flamenco job --- blender_cloud/flamenco/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/blender_cloud/flamenco/__init__.py b/blender_cloud/flamenco/__init__.py index 7d675be..9f336e8 100644 --- a/blender_cloud/flamenco/__init__.py +++ b/blender_cloud/flamenco/__init__.py @@ -128,6 +128,9 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin, if not await self.authenticate(context): return + context.window_manager.progress_begin(0, 4) + context.window_manager.progress_update(1) + from pillarsdk import exceptions as sdk_exceptions from ..blender import preferences @@ -138,6 +141,8 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin, if not outfile: return + context.window_manager.progress_update(3) + # Create the job at Flamenco Server. prefs = preferences() scene = context.scene @@ -174,6 +179,10 @@ class FLAMENCO_OT_render(async_loop.AsyncModalOperatorMixin, self.report({'INFO'}, 'Flamenco job created.') self.quit() + def quit(self): + super().quit() + bpy.context.window_manager.progress_end() + async def bam_pack(self, filepath: Path) -> (typing.Optional[Path], typing.List[Path]): """BAM-packs the blendfile to the destination directory.