Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4461d91

Browse filesBrowse files
committed
fix(example): add missing import of am
Signed-off-by: TsXor <zhang050525@qq.com>
1 parent dc7991b commit 4461d91
Copy full SHA for 4461d91

File tree

Expand file treeCollapse file tree

3 files changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-1
lines changed

‎examples/import_image_as_layer.py

Copy file name to clipboardExpand all lines: examples/import_image_as_layer.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# Import local modules
77
from photoshop import Session
8+
import photoshop.api.action_manager as am
89

910

1011
with Session(action="new_document") as ps:

‎examples/replace_images.py

Copy file name to clipboardExpand all lines: examples/replace_images.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# Import local modules
1111
from photoshop import Session
12+
import photoshop.api.action_manager as am
1213

1314

1415
PSD_FILE = psd.get_psd_files()

‎examples/session_smart_sharpen.py

Copy file name to clipboardExpand all lines: examples/session_smart_sharpen.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
# Import local modules
1313
from photoshop import Session
14+
import photoshop.api.action_manager as am
1415

1516

1617
PSD_FILE = psd.get_psd_files()
@@ -28,6 +29,6 @@ def SmartSharpen(inAmount, inRadius, inNoise):
2829
"blur": am.Enumerated(type="blurType", value="gaussianBlur"),
2930
}
3031
ss_desc = ps.ActionDescriptor.load(ss_dict)
31-
app.ExecuteAction(am.str2id("smartSharpen"), ss_desc)
32+
ps.app.ExecuteAction(am.str2id("smartSharpen"), ss_desc)
3233

3334
SmartSharpen(300, 2.0, 20)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.