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() }
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