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

Photoshop: added support for .psb in workfiles #1078

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions pype/plugins/photoshop/publish/collect_workfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ def process(self, context):
})

# creating representation
_, ext = os.path.splitext(file_path)
instance.data["representations"].append({
"name": "psd",
"ext": "psd",
"name": ext[1:],
"ext": ext[1:],
"files": base_name,
"stagingDir": staging_dir,
})
4 changes: 3 additions & 1 deletion pype/plugins/photoshop/publish/increment_workfile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import pyblish.api
from pype.action import get_errored_plugins_from_data
from pype.lib import version_up
Expand Down Expand Up @@ -25,6 +26,7 @@ def process(self, instance):
)

scene_path = version_up(instance.context.data["currentFile"])
photoshop.stub().saveAs(scene_path, 'psd', True)
_, ext = os.path.splitext(scene_path)
photoshop.stub().saveAs(scene_path, ext[1:], True)

self.log.info("Incremented workfile to: {}".format(scene_path))