Skip to content

Commit 4461d91

Browse files
committed
fix(example): add missing import of am
Signed-off-by: TsXor <[email protected]>
1 parent dc7991b commit 4461d91

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

examples/import_image_as_layer.py

+1
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

+1
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

+2-1
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)