Copy link to clipboard
Copied
Generator is not just a way to create web assets, it is one of the first uses of the Generator technology, a node.js engine now built in Photoshop CC, starting with version 14.1
Here is a tutorial that Tom Krcha made on the topic: http://tomkrcha.com/?p=3896
Copy link to clipboard
Copied
Great tutorial PEC,
I'm looking forward to see what's next 😉 It's yet not clear to me whether you can get the pixel data (as some kind of bitmap object - possibly via getPixmap?) to be manipulated with JS libraries and sent back to PS. That is to say, Javascript based image processing filters. Performance aside, it would mean a lot in terms of extensibility.
Davide
www.davidebarranca.com
Copy link to clipboard
Copied
Bump, wondering if you ever got the answer to your question, Davide?
Copy link to clipboard
Copied
DBarranca stopped using that account. Now he uses only this one: Davide_Barranca
Copy link to clipboard
Copied
In the meantime, I've taught myself some Generator 🙂
I can confirm that there's no setPixmap() – I've logged that as a feature request some time ago: only getPixmap() and getDocumentPixmap(), as sidpalas said.
The Adobe Generator section of the Professional Photoshop Scripting book should cover most of what's needed to get anyone started (the chapter, which I'm editing right now, is about 40 pages and counting).
Davide
Copy link to clipboard
Copied
That site is down, is there other link to his tutorial?
Btw, do you think it is his account: tomkrcha1
He never posted but was last seen at April, 29th '18.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Regarding retrieving pixel data, see getPixmap() and getDocumentPixmap() in: generator-core/generator.js at master · adobe-photoshop/generator-core · GitHub
Find more inspiration, events, and resources on the new Adobe Community
Explore Now