libreflow.extensions.sk.export-psd-layers 1.1.0__tar.gz → 1.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/CHANGELOG.md +12 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/PKG-INFO +13 -1
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow/extensions/sk/export_psd_layers/__init__.py +13 -3
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow/extensions/sk/export_psd_layers/_version.py +3 -3
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow.extensions.sk.export_psd_layers.egg-info/PKG-INFO +13 -1
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/MANIFEST.in +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/README.md +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/setup.cfg +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/setup.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow/extensions/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow/extensions/sk/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow.extensions.sk.export_psd_layers.egg-info/SOURCES.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow.extensions.sk.export_psd_layers.egg-info/dependency_links.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow.extensions.sk.export_psd_layers.egg-info/requires.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/src/libreflow.extensions.sk.export_psd_layers.egg-info/top_level.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.0 → libreflow_extensions_sk_export_psd_layers-1.1.2}/versioneer.py +0 -0
|
@@ -19,6 +19,18 @@ Types of changes
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [1.1.2] - 2025-04-25
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
* Export layers action: layers with invalid filename characters break the script
|
|
27
|
+
|
|
28
|
+
## [1.1.1] - 2025-04-24
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
* Export layers action: render folder do not create
|
|
33
|
+
|
|
22
34
|
## [1.1.0] - 2025-04-24
|
|
23
35
|
|
|
24
36
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libreflow.extensions.sk.export_psd_layers
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Home-page: https://gitlab.com/lfs.coop/libreflow/libreflow_launcher
|
|
5
5
|
Author: Thomas Thiebaut
|
|
6
6
|
Author-email: autor@les-fees-speciales.coop
|
|
@@ -50,6 +50,18 @@ Types of changes
|
|
|
50
50
|
|
|
51
51
|
## [Unreleased]
|
|
52
52
|
|
|
53
|
+
## [1.1.2] - 2025-04-25
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
* Export layers action: layers with invalid filename characters break the script
|
|
58
|
+
|
|
59
|
+
## [1.1.1] - 2025-04-24
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
* Export layers action: render folder do not create
|
|
64
|
+
|
|
53
65
|
## [1.1.0] - 2025-04-24
|
|
54
66
|
|
|
55
67
|
### Added
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import re
|
|
2
3
|
import json
|
|
3
4
|
import gazu
|
|
4
5
|
import time
|
|
@@ -103,22 +104,31 @@ class ExportPSDLayers(flow.Action):
|
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
# Export image layers
|
|
107
|
+
if os.path.exists(render_revision.get_path()) is False:
|
|
108
|
+
os.makedirs(render_revision.get_path())
|
|
109
|
+
|
|
106
110
|
folder_name = os.path.basename(render_revision.get_path())
|
|
107
111
|
|
|
108
112
|
for layer in reversed(psb):
|
|
113
|
+
# Remove invalid characters
|
|
114
|
+
layer_name = layer.name
|
|
115
|
+
match_invalid = re.search(r"[~\"#%&*:<>?/\\{|}]+", layer.name)
|
|
116
|
+
if match_invalid:
|
|
117
|
+
layer_name = layer_name.replace(match_invalid.group(0), '')
|
|
118
|
+
|
|
109
119
|
output_path = os.path.join(
|
|
110
120
|
render_revision.get_path(),
|
|
111
|
-
"{folder}-{layer}.png".format(folder=folder_name, layer=
|
|
121
|
+
"{folder}-{layer}.png".format(folder=folder_name, layer=layer_name),
|
|
112
122
|
)
|
|
113
123
|
|
|
114
|
-
session.log_info(log_format.format(message=f'Exporting layer {
|
|
124
|
+
session.log_info(log_format.format(message=f'Exporting layer {layer_name}'))
|
|
115
125
|
|
|
116
126
|
image = layer.composite(viewport=psb.bbox)
|
|
117
127
|
image.save(output_path)
|
|
118
128
|
|
|
119
129
|
# Push layer in correct JSON data
|
|
120
130
|
layers_data["layers" if layer.visible else "hidden_layers"].append(
|
|
121
|
-
|
|
131
|
+
layer_name
|
|
122
132
|
)
|
|
123
133
|
|
|
124
134
|
# Export JSON data
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-04-
|
|
11
|
+
"date": "2025-04-25T13:00:12+0200",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "1.1.
|
|
14
|
+
"full-revisionid": "1ec678249c80d17d3ebf3b7fc8bd986c62201092",
|
|
15
|
+
"version": "1.1.2"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libreflow.extensions.sk.export_psd_layers
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Home-page: https://gitlab.com/lfs.coop/libreflow/libreflow_launcher
|
|
5
5
|
Author: Thomas Thiebaut
|
|
6
6
|
Author-email: autor@les-fees-speciales.coop
|
|
@@ -50,6 +50,18 @@ Types of changes
|
|
|
50
50
|
|
|
51
51
|
## [Unreleased]
|
|
52
52
|
|
|
53
|
+
## [1.1.2] - 2025-04-25
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
* Export layers action: layers with invalid filename characters break the script
|
|
58
|
+
|
|
59
|
+
## [1.1.1] - 2025-04-24
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
* Export layers action: render folder do not create
|
|
64
|
+
|
|
53
65
|
## [1.1.0] - 2025-04-24
|
|
54
66
|
|
|
55
67
|
### Added
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|