copy layer mask to another layer

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

Moderators: Tom, Kukurykus

irov

copy layer mask to another layer

Post by irov »

i have layer 'Layer 1' with pixel mask(or vector).
how i can copy this mask to another layer 'Layer 2'?

thanks!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pfaffenbichler

copy layer mask to another layer

Post by pfaffenbichler »

Have you tried recording AM code with ScriptingListener.plugin yet?

By the way the identification of Layers via their name is risky, as more than one Layer may have the same name, so index or ID may be a better choice.