Flamenco: show crude progress when BAM-packing & creating Flamenco job
This commit is contained in:
parent
3ef2ca0c07
commit
bdb00eeaaa
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user