mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Test resolution values against settings
This commit is contained in:
parent
2d819c4d7f
commit
d4df16bb87
1 changed files with 14 additions and 0 deletions
|
|
@ -51,7 +51,21 @@ class ExtractPlayblast(openpype.api.Extractor):
|
|||
)
|
||||
preset = lib.load_capture_preset(data=self.capture_preset)
|
||||
|
||||
capture_presets = openpype.api.get_current_project_settings()["maya"]["publish"]["ExtractPlayblast"]["capture_preset"] # noqa
|
||||
width_preset = capture_presets["Resolution"]["width"]
|
||||
height_preset = capture_presets["Resolution"]["height"]
|
||||
preset['camera'] = camera
|
||||
|
||||
if width_preset == 0:
|
||||
preset['width'] = instance.data.get("resolutionWidth")
|
||||
else:
|
||||
preset["width"] = width_preset
|
||||
|
||||
if height_preset == 0:
|
||||
preset['width'] = instance.data.get("resolutionHeight")
|
||||
else:
|
||||
preset['height'] = height_preset
|
||||
|
||||
preset['start_frame'] = start
|
||||
preset['end_frame'] = end
|
||||
camera_option = preset.get("camera_option", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue