mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'hotfix/review_extractors'
This commit is contained in:
commit
8eb5f2ab9a
2 changed files with 8 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ class ExtractBurnin(pype.api.Extractor):
|
||||||
if "representations" not in instance.data:
|
if "representations" not in instance.data:
|
||||||
raise RuntimeError("Burnin needs already created mov to work on.")
|
raise RuntimeError("Burnin needs already created mov to work on.")
|
||||||
|
|
||||||
if self.profiles is None:
|
if self.use_legacy_code(instance):
|
||||||
return self.legacy_process(instance)
|
return self.legacy_process(instance)
|
||||||
self.main_process(instance)
|
self.main_process(instance)
|
||||||
|
|
||||||
|
|
@ -71,6 +71,12 @@ class ExtractBurnin(pype.api.Extractor):
|
||||||
|
|
||||||
self.log.debug(instance.data["representations"])
|
self.log.debug(instance.data["representations"])
|
||||||
|
|
||||||
|
def use_legacy_code(self, instance):
|
||||||
|
presets = instance.context.data.get("presets")
|
||||||
|
if presets is None and self.profiles is None:
|
||||||
|
return True
|
||||||
|
return "burnins" in (presets.get("tools") or {})
|
||||||
|
|
||||||
def main_process(self, instance):
|
def main_process(self, instance):
|
||||||
# TODO get these data from context
|
# TODO get these data from context
|
||||||
host_name = os.environ["AVALON_APP"]
|
host_name = os.environ["AVALON_APP"]
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "2.9.0"
|
__version__ = "2.9.1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue