This is a sample Photoshop Generator plugin using photoshop-generator-core node module enabling HTTP access to Photoshop:
- Open documents (list, change active, close)
- Layer metadata (bounds, children, etc.)
- Layer content
To deploy the sample plugin
- Create a folder
- Install the module 'npm install photoshop-generator-sample'
- Copy content from node_modules/photoshop-generator-sample to the folder root
- Copy the folder to $Photoshop/Plug-ins/Generator
- Start Photoshop and open a document
- Open browser and visit
- http://localhost:8083/ for server info
- http://localhost:8083/documents for a list of open documents
- http://localhost:8083/layerdata/DOCUMENT_ID for document root metadata
- http://localhost:8083/layerdata/DOCUMENT_ID/LAYER_ID for layer metadata
- http://localhost:8083/layercontent/DOCUMENT_ID/LAYER_ID for layer content as a PNG