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

Photoshop JS Script that displays RGB values on text layer.

New Here ,
May 05, 2017 May 05, 2017

Copy link to clipboard

Copied

How would I write a JS that changes the text layer to display the current RGB value of a different layer and updates when that layer color is changed?

This is what I have so far.

dlg.color1Btn.onClick = function(){

        app.activeDocument.activeLayer = app.activeDocument.layerSets.getByName("Colors").artLayers.getByName("1");

        app.activeDocument.selection.selectAll();

        getColor();

        app.activeDocument.selection.fill(foregroundColor , undefined, undefined, true);

        app.activeDocument.selection.deselect();

        app.refresh();

        }

function getColor(){  showColorPicker()  }

Views

256

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

correct answers 1 Correct answer

Community Expert , May 07, 2017 May 07, 2017

The description of the intended process is too vague to be useful in my opinion.

Please post a meaningful description (maybe with some screenshots to illustrate the Layer structure etc.) over at

Photoshop Scripting

Votes

Translate

Translate
Adobe
Community Expert ,
May 07, 2017 May 07, 2017

Copy link to clipboard

Copied

LATEST

The description of the intended process is too vague to be useful in my opinion.

Please post a meaningful description (maybe with some screenshots to illustrate the Layer structure etc.) over at

Photoshop Scripting

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