• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Photoshop CC access document element from outside extension

New Here ,
Oct 16, 2016 Oct 16, 2016

Copy link to clipboard

Copied

0down votefavorite

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!

TOPICS
Actions and scripting

Views

410

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
Oct 18, 2016 Oct 18, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2016 Oct 28, 2016

Copy link to clipboard

Copied

LATEST

Thanks, I'll use putCustomOptions!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines