1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Photoshopで全レイヤーフォルダを一括で「通過」に設定するスクリプト

1
Posted at

📝 概要

Photoshopでは、クリスタやSaiからデータを持ってきたときやレイヤーフォルダ(グループ)の描画モードが「通過)」ではなく「通常」などに変更されていると、下位レイヤーの効果や調整レイヤーがうまく反映されないことがあります。

そこで今回は、すべてのレイヤーフォルダを一括で「通過」に変更するJavaScriptスクリプトを張っておきます。

💡 使い方

Photoshopを起動し、任意のPSDファイルを開きます。
Photoshopのメニューから
「ファイル」→「スクリプト」→「参照」 でこのスクリプトを実行します。

// 全レイヤーフォルダの描画モードを「通過」に設定するスクリプト

fixLayerpreset(app.activeDocument.layerSets);

function fixLayerpreset(layerSets) {
    for (var i = 0; i < layerSets.length; ++i) {
        layerSets[i].blendMode = BlendMode.PASSTHROUGH;:::note info
ここのBlendModeを変えればレイヤーモードを変えれます(実用性なし)
:::

        // 再帰的に子レイヤーセットにも適用
        fixLayerpreset(layerSets[i].layerSets);
    }
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?