2016-07-15 43 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用你的行動名稱並設置存儲在那裏的行動內循環的行動。

享受。

相關問題