This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Photoshop: mark publishable instances #1093
Merged
mkolar
merged 11 commits into
2.x/develop
from
feature/643-mark-publishable-instances-in-photoshop
Mar 10, 2021
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5613f87
PS - added Subset Manager into menu
kalisp fc89c6f
PS - use subset name as instance name
kalisp a50fcad
PS - added validator for subset names uniqueness
kalisp 04a7963
PS - fixed validate_naming repair action
kalisp 349cee3
PS - fixed validate_naming repair
kalisp 59d4fa5
PS - added highlight with icon for publishable instances
kalisp 4db33fb
PS - added highlight with icon for publishable instances
kalisp fe7cfb5
PS - modified escaping
kalisp a28f841
AE - modified escaping
kalisp 9aeb6e4
PS - fix repair validator - limit duplication of family
kalisp 04b8dfe
PS - fix multiple group create instances
kalisp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,5 +73,17 @@ def process(self): | |
groups.append(group) | ||
|
||
for group in groups: | ||
long_names = [] | ||
if group.long_name: | ||
for directory in group.long_name[::-1]: | ||
name = directory.replace(stub.PUBLISH_ICON, '').\ | ||
replace(stub.LOADED_ICON, '') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. continuation line over-indented for hanging indent |
||
long_names.append(name) | ||
|
||
self.data.update({"subset": "image" + group.name}) | ||
self.data.update({"uuid": str(group.id)}) | ||
self.data.update({"long_name": "_".join(long_names)}) | ||
stub.imprint(group, self.data) | ||
# reusing existing group, need to rename afterwards | ||
if not create_group: | ||
stub.rename_layer(group.id, stub.PUBLISH_ICON + group.name) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line over-indented for hanging indent