mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fixed multipartExr check
This commit is contained in:
parent
13bf4d9a11
commit
46e3c540cd
2 changed files with 25 additions and 13 deletions
|
|
@ -60,6 +60,18 @@ class ExtractBurnin(pype.api.Extractor):
|
|||
self.log.debug(instance.data["representations"])
|
||||
|
||||
def main_process(self, instance):
|
||||
# ffmpeg doesn't support multipart exrs
|
||||
if instance.data.get("multipartExr") is True:
|
||||
instance_label = (
|
||||
getattr(instance, "label", None)
|
||||
or instance.data.get("label")
|
||||
or instance.data.get("name")
|
||||
)
|
||||
self.log.info((
|
||||
"Instance \"{}\" contain \"multipartExr\". Skipped."
|
||||
).format(instance_label))
|
||||
return
|
||||
|
||||
# TODO get these data from context
|
||||
host_name = pyblish.api.registered_hosts()[-1]
|
||||
task_name = os.environ["AVALON_TASK"]
|
||||
|
|
@ -320,13 +332,6 @@ class ExtractBurnin(pype.api.Extractor):
|
|||
"Representation \"{}\" don't have \"burnin\" tag. Skipped."
|
||||
).format(repre["name"]))
|
||||
return False
|
||||
|
||||
# ffmpeg doesn't support multipart exrs
|
||||
if "multipartExr" in repre["tags"]:
|
||||
self.log.info((
|
||||
"Representation \"{}\" contain \"multipartExr\" tag. Skipped."
|
||||
).format(repre["name"]))
|
||||
return False
|
||||
return True
|
||||
|
||||
def filter_burnins_by_tags(self, burnin_defs, tags):
|
||||
|
|
|
|||
|
|
@ -56,6 +56,17 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
instance.data["representations"].remove(repre)
|
||||
|
||||
def main_process(self, instance):
|
||||
if instance.data.get("multipartExr") is True:
|
||||
instance_label = (
|
||||
getattr(instance, "label", None)
|
||||
or instance.data.get("label")
|
||||
or instance.data.get("name")
|
||||
)
|
||||
self.log.info((
|
||||
"Instance \"{}\" contain \"multipartExr\". Skipped."
|
||||
).format(instance_label))
|
||||
return
|
||||
|
||||
host_name = pyblish.api.registered_hosts()[-1]
|
||||
task_name = os.environ["AVALON_TASK"]
|
||||
family = self.main_family_from_instance(instance)
|
||||
|
|
@ -96,11 +107,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
# Loop through representations
|
||||
for repre in tuple(instance.data["representations"]):
|
||||
tags = repre.get("tags") or []
|
||||
if (
|
||||
"review" not in tags
|
||||
or "multipartExr" in tags
|
||||
or "thumbnail" in tags
|
||||
):
|
||||
if "review" not in tags or "thumbnail" in tags:
|
||||
continue
|
||||
|
||||
input_ext = repre["ext"]
|
||||
|
|
@ -1122,7 +1129,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
|
||||
tags = repre.get("tags", [])
|
||||
|
||||
if "multipartExr" in tags:
|
||||
if instance.data.get("multipartExr") is True:
|
||||
# ffmpeg doesn't support multipart exrs
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue