Passing active document to JavaScript?
Passing active document to JavaScript?
When working with panels and using JavaScript to do some processing on an image, I can access the current file via its path. However, is there a way to actually send the current state of the document into JavaScript? I guess I could save a temp file and access that, but was wondering if there was a better way. Thanks!