mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Optional skip review on renders.
This commit is contained in:
parent
9be94c1580
commit
2a0d0717ca
4 changed files with 10 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
|
|||
if instance.data.get("multipartExr") is True:
|
||||
return
|
||||
|
||||
# Skip review when requested.
|
||||
if not instance.data.get("review"):
|
||||
return
|
||||
|
||||
# get representation and loop them
|
||||
representations = instance.data["representations"]
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,10 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
to_height = 1080
|
||||
|
||||
def process(self, instance):
|
||||
# Skip review when requested.
|
||||
if not instance.data.get("review"):
|
||||
return
|
||||
|
||||
# ffmpeg doesn't support multipart exrs
|
||||
if instance.data.get("multipartExr") is True:
|
||||
instance_label = (
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ class CreateRender(avalon.maya.Creator):
|
|||
self.data["primaryPool"] = pool_names
|
||||
|
||||
self.data["suspendPublishJob"] = False
|
||||
self.data["review"] = True
|
||||
self.data["extendFrames"] = False
|
||||
self.data["overrideExistingFrame"] = True
|
||||
# self.data["useLegacyRenderLayers"] = True
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ class CollectMayaRender(pyblish.api.ContextPlugin):
|
|||
"attachTo": attach_to,
|
||||
"setMembers": layer_name,
|
||||
"multipartExr": ef.multipart,
|
||||
"review": render_instance.data.get("review") or False,
|
||||
"publish": True,
|
||||
|
||||
"handleStart": handle_start,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue