Is it possible to batch export as PNG in UXP?
Hi all! I'm kinda new to UXP development and need some help with batch exporting. Here's a description of my situation:
My team has PSD files with 2+ artboards. In each artboard, there are multiple text elements in different languages; for example "Title_English", "Title_Spanish", etc.
To export, their workflow is currently:
- Enable just the text element they want.
- Export As -> PNG
- Disable the old text element
- Enable the next text element
- Export As -> PNG
and repeat.
I'm trying to write a plugin for them to automate this process. I'm Ok finding the layers that need to be toggled on/off, but I'm struggling to find a way to bring up the "Save As..." panel, and then detecting when the user hits the "Export" button so that the "Save As..." panel can be brought up again with the next layers on. I've tried using Alchemist to detect these events but the only thing that shows up is "Invoke Command: 3443" which is what brings up the "Save As..." window.
Thank you in advance for your suggestions, and I'm also open to changing the approach if you think there's a better way to do this 🙂
