Script to change a pattern fill layer color

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

Moderators: xbytor, DavideBarranca, Paul MR

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

Script to change a pattern fill layer color

Postby andreyorlov33 » Fri May 19, 2017 8:09 pm

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
Posts: 66
Joined: Thu Jan 01, 1970 12:00 am

Re: Script to change a pattern fill layer color

Postby txuku » Sat May 20, 2017 7:58 am


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:

Return to “Photoshop Scripting - General Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests