Copy link to clipboard
Copied
I have an c++ automation plugin to export meta data from layers to a file, but I would also like to export some layer groups to PNG,
I see the option "Quick export as PNG" when right clicking on a layer, unfortunately I am not able to capture it using the Listener demo.
The plugin right now does:
I know how to export a png using sPSActionControl and eventSave, but that exports the whole document. I would only like to export the selected layer.
I would like to avoid this other solution Export portion of an Image using Lyr "Bounds" since execution seems the be slow.
Copy link to clipboard
Copied
"Quick export as PNG" uses Connection SDK which is wrapped into Kevlar API which is wrapped into generator-core which has plugin generate assets and this plugin communicates with Chromium if this is export assets instead of quick export.
This means that quick exports generator plugin sends request generator core which executes extend script and creates request for certain layers bitmap and this is sent via TCP protocol to generator core (maybe encrypted and on generator core side this is decrypted) and then it goes to generator plugin node.js process on localhost...
I would try to record "run menu item" action instead.