Copy link to clipboard
Copied
Hello everyone!
I was wondering if I can write Python code to open a PSD file in Photoshop, import Variable Data Sets from a TXT file, then export Data Sets as Files to a specified path.
I have everything ready in place, the Data Sets are defined in the PSD file, and the TXT file is formatted as it should be, I just want the Python code to initiate the process.
Any help?
Thank you in advance.
Copy link to clipboard
Copied
Do have a look here and see if you're happy.
https://github.com/loonghao/photoshop-python-api
If so, could you mark this as a correct answer for posterity? Thx!
Copy link to clipboard
Copied
To open a Photoshop PSD file using Python, you can use the psd-tools library. Here is an example code snippet:
from psd_tools import PSDImage
psd = PSDImage.open('path/to/file.psd')
Find more inspiration, events, and resources on the new Adobe Community
Explore Now