Script to change a pattern fill layer color

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

andreyorlov33
Posts: 3
Joined: Fri May 19, 2017 8:01 pm

Script to change a pattern fill layer color

Post by andreyorlov33 »

Hello, I am attempting to write a javascript script for photoshop CS16 to target a pattern fill layer and change its color.
I am not able to do so with the .fill command as i found out that command cannot be used on the patternfill layer type.
I've never programmed in adobe environment before and I would greatly appreciate it if someone could point me in the right direction
as to how i would accomplish this task .
in short here is a what i am trying to accomplish:
1 select a pattern fill layer by name
2 change its color

Thank you in advanced !
User avatar
txuku
Posts: 136
Joined: Thu Jan 01, 1970 12:00 am

Re: Script to change a pattern fill layer color

Post by txuku »

Bonjour

I am dominique filiol on the Adobe forum :)


And it is the same answer:
"Gn" "Rd" "Ylw" "Grn" "Bl" "Vlt" "Orng"


Colors authorized by CC are

Gray red yellow green blue purple orange ! :roll: