mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Locking comp when calling render to counter pop up window
This commit is contained in:
parent
e8941f059c
commit
b2c18cc424
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import pyblish.api
|
||||
|
||||
import avalon.fusion as fusion
|
||||
|
||||
|
||||
class ExtractImageSequence(pyblish.api.InstancePlugin):
|
||||
"""Extract result of saver by starting a comp render
|
||||
|
|
@ -32,6 +34,8 @@ class ExtractImageSequence(pyblish.api.InstancePlugin):
|
|||
self.log.info("Start frame: {}".format(start_frame))
|
||||
self.log.info("End frame: {}".format(end_frame))
|
||||
|
||||
result = current_comp.Render()
|
||||
with fusion.comp_lock_and_undo_chunk(current_comp):
|
||||
result = current_comp.Render()
|
||||
|
||||
if not result:
|
||||
raise RuntimeError("Comp render failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue