Skip to content

Commit

Permalink
fix(example): add missing import of am
Browse files Browse the repository at this point in the history
Signed-off-by: TsXor <[email protected]>
  • Loading branch information
TsXor committed Sep 4, 2022
1 parent dc7991b commit 4461d91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/import_image_as_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# Import local modules
from photoshop import Session
import photoshop.api.action_manager as am


with Session(action="new_document") as ps:
Expand Down
1 change: 1 addition & 0 deletions examples/replace_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Import local modules
from photoshop import Session
import photoshop.api.action_manager as am


PSD_FILE = psd.get_psd_files()
Expand Down
3 changes: 2 additions & 1 deletion examples/session_smart_sharpen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# Import local modules
from photoshop import Session
import photoshop.api.action_manager as am


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

SmartSharpen(300, 2.0, 20)

0 comments on commit 4461d91

Please sign in to comment.