Script to add color to paternfill layer

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

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

Script to add color to paternfill layer

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 !

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

Re: Script to add color to paternfill layer

Post by wasfiwasfi »

Hi
Try to add a "Color Overlay" effect and set the blending mode to "Hue"
now when you change the color of the effect it will work.
what version of photoshop are you using ?

User avatar
txuku
Posts: 120
Joined: Thu Jan 01, 1970 12:00 am

Re: Script to add color to paternfill layer

Post by txuku »

Bonjour

You can use the ScriptingListener plugin!

See the Photoshop Scripting Guide.pdf in the Action Manager chapter