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!
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.