-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(examples): processed with black and isort
Signed-off-by: TsXor <[email protected]>
- Loading branch information
Showing
7 changed files
with
53 additions
and
62 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
"""Import a image as a artLayer.""" | ||
|
||
# Import built-in modules | ||
import pathlib | ||
|
||
# Import local modules | ||
from photoshop import Session | ||
import pathlib | ||
|
||
|
||
with Session(action="new_document") as ps: | ||
import_dict = { | ||
'_classID':None, | ||
'null':pathlib.Path("your/image/path") # replace it with your own path here | ||
} | ||
import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")} # replace it with your own path here | ||
import_desc = ps.ActionDescriptor.load(import_dict) | ||
ps.app.executeAction(am.str2id("Plc "), import_desc) # `Plc` need one space in here. |
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