将当前选区作为图层蒙版应用到当前图层
Apply current selection as a layer mask to the current layer
我已将选择保存为名为 "circle" 的频道。
我想将此选区作为图层蒙版应用到所有图层
这是我目前的脚本
tell application "Adobe Photoshop CC 2015.5"
activate
set theDOC to the current document
tell theDOC
set totalLayers to count each layer
repeat with indice from 1 to totalLayers by 1
tell layer indice
-- load the channel
tell theDOC
load selection of it from channel "circle" of it
end tell
-- I now need a magic command to apply the "circle" selection that is active now, to the current layer as a layer mask, inside this loop
end tell
end repeat
end tell
end tell
经过深入研究,我得出结论,没有办法做到这一点,感谢 Adobe。我的解决方案是:
- 在 Photoshop 上创建一个动作以将选区添加为蒙版。
使用
在循环内调用该操作
从 "Default Actions"
执行操作 "mask"
- 将
mask
和 Default Actions
更改为您的操作名称并设置操作的存储位置。
尽情享受吧。
我已将选择保存为名为 "circle" 的频道。 我想将此选区作为图层蒙版应用到所有图层
这是我目前的脚本
tell application "Adobe Photoshop CC 2015.5"
activate
set theDOC to the current document
tell theDOC
set totalLayers to count each layer
repeat with indice from 1 to totalLayers by 1
tell layer indice
-- load the channel
tell theDOC
load selection of it from channel "circle" of it
end tell
-- I now need a magic command to apply the "circle" selection that is active now, to the current layer as a layer mask, inside this loop
end tell
end repeat
end tell
end tell
经过深入研究,我得出结论,没有办法做到这一点,感谢 Adobe。我的解决方案是:
- 在 Photoshop 上创建一个动作以将选区添加为蒙版。
使用
在循环内调用该操作从 "Default Actions"
执行操作 "mask"- 将
mask
和Default Actions
更改为您的操作名称并设置操作的存储位置。
- 将
尽情享受吧。