mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Implemented suggestions
This commit is contained in:
parent
255fd940a1
commit
1da3854c82
1 changed files with 2 additions and 5 deletions
|
|
@ -21,6 +21,7 @@ class ExtractThumbnail(openpype.api.Extractor):
|
|||
hosts = ["blender"]
|
||||
families = ["review"]
|
||||
order = pyblish.api.ExtractorOrder + 0.01
|
||||
presets = {}
|
||||
|
||||
def process(self, instance):
|
||||
self.log.info("Extracting capture..")
|
||||
|
|
@ -36,11 +37,7 @@ class ExtractThumbnail(openpype.api.Extractor):
|
|||
family = instance.data.get("family")
|
||||
isolate = instance.data("isolate", None)
|
||||
|
||||
project_settings = instance.context.data["project_settings"]["blender"]
|
||||
extractor_settings = project_settings["publish"]["ExtractThumbnail"]
|
||||
presets = extractor_settings.get("presets")
|
||||
|
||||
preset = presets.get(family, {})
|
||||
preset = self.presets.get(family, {})
|
||||
|
||||
preset.update({
|
||||
"camera": camera,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue