Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions pipeline/pipe/m/playblast/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ class PlayblastDialog(ButtonPair, QtWidgets.QMainWindow):

class SAVE_LOCS:
CUSTOM = SaveLocation("Custom Folder", "", Playblaster.PRESET.WEB)
CURRENT = SaveLocation(
"Current Folder",
Path(mc.file(query=True, sceneName=True)).parent, # type: ignore[arg-type]
Playblaster.PRESET.WEB,
)
CURRENT = SaveLocation("Current Folder", "", Playblaster.PRESET.WEB)

class MAYA_HUDS:
CAM_NAME = "HUDCameraNames"
Expand Down Expand Up @@ -87,8 +83,11 @@ def __init__(
windowTitle: str = "LnD Playblast",
) -> None:
super().__init__(parent, windowTitle=windowTitle)
# initialize SAVE_LOCS custom path
# initialize SAVE_LOCS paths
self.SAVE_LOCS.CUSTOM._path = lambda: self._custom_folder_text.text()
self.SAVE_LOCS.CURRENT._path = lambda: Path(
mc.file(query=True, sceneName=True) # type: ignore[arg-type]
).parent

# initialize other values
self.shot_configs = shot_configs
Expand Down