Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3566 from pypeclub/bugfix/maya-active-pane-loss
Browse files Browse the repository at this point in the history
Maya: fix active pane loss
  • Loading branch information
mkolar authored Jul 26, 2022
2 parents 81b3034 + 53e430e commit caedd0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openpype/hosts/maya/plugins/publish/extract_playblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ def process(self, instance):
# Update preset with current panel setting
# if override_viewport_options is turned off
if not override_viewport_options:
panel = cmds.getPanel(with_focus=True)
panel_preset = capture.parse_active_view()
preset.update(panel_preset)
cmds.setFocus(panel)

path = capture.capture(**preset)

Expand Down
2 changes: 2 additions & 0 deletions openpype/hosts/maya/plugins/publish/extract_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ def process(self, instance):
# Update preset with current panel setting
# if override_viewport_options is turned off
if not override_viewport_options:
panel = cmds.getPanel(with_focus=True)
panel_preset = capture.parse_active_view()
preset.update(panel_preset)
cmds.setFocus(panel)

path = capture.capture(**preset)
playblast = self._fix_playblast_output_path(path)
Expand Down

0 comments on commit caedd0e

Please sign in to comment.