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

Commit

Permalink
🐛 fix active pane loss
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Jul 25, 2022
1 parent bc1f394 commit 53e430e
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 53e430e

Please sign in to comment.