Copy link to clipboard
Copied
I created an extension for Photoshop CC 2015 using javascript where the panel UI elements are defined using the document.createElement() function. For example, I have a "select" object that was created as: var colorList = document.createElement("SELECT"); colorList.id = "colorListID"; Is there a way to access this colorList element from an external script that lives outside the extension? It looks like I first need to be able to access the document object that corresponds to the extension panel. Is there a way to access this document object? Thanks! |
Copy link to clipboard
Copied
I think you can read files from disk.
You HTML extension panel would have JSX file which can read/write for example txt file and your external javascript can do same thing.
Or better(faster) way could be use putCustomOptions
extendscript - Saving per-user or per-document preferences in a Photoshop script - Stack Overflow
Copy link to clipboard
Copied
Thanks, I'll use putCustomOptions!