Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maya: Ability to set resolution for playblasts from asset, and override through review instance. #3360

Merged
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions openpype/hosts/maya/plugins/publish/extract_playblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,21 @@ def process(self, instance):
)
preset = lib.load_capture_preset(data=self.capture_preset)

capture_presets = openpype.api.get_current_project_settings()["maya"]["publish"]["ExtractPlayblast"]["capture_preset"] # noqa
This conversation was marked as resolved.
Show resolved Hide resolved
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", {})
Expand Down