Skip to content

Commit 29df110

Browse files
authored
fix bug where the current folder option in the pb UI would be incorrect after opening multiple shots (#268)
1 parent bc3317c commit 29df110

File tree

1 file changed

+5
-6
lines changed
  • pipeline/pipe/m/playblast

1 file changed

+5
-6
lines changed

pipeline/pipe/m/playblast/ui.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ class PlayblastDialog(ButtonPair, QtWidgets.QMainWindow):
5353

5454
class SAVE_LOCS:
5555
CUSTOM = SaveLocation("Custom Folder", "", Playblaster.PRESET.WEB)
56-
CURRENT = SaveLocation(
57-
"Current Folder",
58-
Path(mc.file(query=True, sceneName=True)).parent, # type: ignore[arg-type]
59-
Playblaster.PRESET.WEB,
60-
)
56+
CURRENT = SaveLocation("Current Folder", "", Playblaster.PRESET.WEB)
6157

6258
class MAYA_HUDS:
6359
CAM_NAME = "HUDCameraNames"
@@ -87,8 +83,11 @@ def __init__(
8783
windowTitle: str = "LnD Playblast",
8884
) -> None:
8985
super().__init__(parent, windowTitle=windowTitle)
90-
# initialize SAVE_LOCS custom path
86+
# initialize SAVE_LOCS paths
9187
self.SAVE_LOCS.CUSTOM._path = lambda: self._custom_folder_text.text()
88+
self.SAVE_LOCS.CURRENT._path = lambda: Path(
89+
mc.file(query=True, sceneName=True) # type: ignore[arg-type]
90+
).parent
9291

9392
# initialize other values
9493
self.shot_configs = shot_configs

0 commit comments

Comments
 (0)