Copy link to clipboard
Copied
I have a text layer that I have used to work out the ext dimensions so I can put a background behind it. I have used script listener but I get a general Photoshop error. So I would like to move from the text layer to the background layer and fill the selected area
(col = new SolidColor()).rgb.hexValue = '000000', activeDocument.selection.fill(col, null, 70)
Copy link to clipboard
Copied
aD.activeLayer = (aD = activeDocument).layers['DATA'].layers['Text Background']
Copy link to clipboard
Copied
apologies as you were submitting your reply I realised that I had got the original question wrong, so I used this part of your answer and the layer is selected
aD.activeLayer = (aD = activeDocument).layers['Text Background']
Copy link to clipboard
Copied
I don't understand your new questinon, explain it better by posting screenshot.
Copy link to clipboard
Copied
I have here a screenshot of where the scripts currently gets me and what I would like to achievewhere script currently gets me
ideal result black fill 70%
Copy link to clipboard
Copied
(col = new SolidColor()).rgb.hexValue = '000000', activeDocument.selection.fill(col, null, 70)
Copy link to clipboard
Copied
Many thanks a great answer as always. I just now need to deselect the selection.
which I have done with
activeDocument.selection.deselect();
Find more inspiration, events, and resources on the new Adobe Community
Explore Now