2016-07-15 120 views
0

我已将选择保存为名为“圆”的通道。 我想这个选择的图层蒙版适用于所有层将当前选择作为图层蒙版应用到当前图层

这是剧本我到目前为止

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 

回答

0

了深入的研究后,我的结论是没有办法做到这一点,这要归功于的Adobe。我对此的解决方案是:

  1. 在Photoshop上创建一个操作,将选择添加为掩码。
  2. 呼叫使用

    做动作“面具”,从“默认操作”

    • 变化maskDefault Actions用你的行动名称并设置存储在那里的行动内循环的行动。

享受。

相关问题