In CEP, I previously relied on Adobe Generator for getting a pixmap of an artboard or a given layer, and then saving / exporting that image as needed.
Using @DavideBarranca’s old guide, I established a connection between the front-end panel and the backend generator plugin to issue commands that would export the images.
I’m not certain, but it appears that support for Generator is being dropped (and may already have been dropped for Macs).
First question is: Is that correct? Are Generator and associated plugins being dropped?
And if so, is there an equivalent method for exporting images from a layer using UXP commands?
If that exists, can someone point me to documentation or example code I can lean on?
Additionally, there were Photoshop events such as documentChanged, imageChanged. Can these be listened to from UXP?
I’ll leave this to @Barkin and the Ps Product team.
Not yet. It’s being built. You can export the entire document (using Document#SaveAs), but getting a layer rendition is more difficult at the moment. So you’re not missing anything atm – there’s no easy way yet.
As for the layer exporting, I suppose my only current viable option would be to convert an artboard into a smart object, open the smart object, and then save the entire document? Seems like something like that could work in the short term.
And thanks a ton for the docs on those listeners! Diving in now.