Page 1 of 1

Passing active document to JavaScript?

Posted: Mon Sep 23, 2019 5:52 pm
by Jason407
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!