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 #1078 from pypeclub/PS_psb_in_workfiles
Browse files Browse the repository at this point in the history
PS - added support for .psb in workfiles
  • Loading branch information
mkolar authored Mar 3, 2021
2 parents 2053052 + f84d68c commit 6803943
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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))

0 comments on commit 6803943

Please sign in to comment.