Skip to main content
Participant
March 26, 2023
Question

bridgeからphotoshopで複数のスマートオブジェクトをレイヤーで重ねたい

  • March 26, 2023
  • 2 replies
  • 467 views

bridgeから複数枚のRAWデータを選択し、photoshop上でその複数枚のデータ(スマートオブジェクト)をレイヤーとして重ねて、一枚のデータにしたいのですが、簡単な方法はありませんでしょうか?

スマートオブジェクトではなく通常のレイヤーとして重ねるのは一発でできるのですが、スマートオブジェクトで重ねてのちに一枚ずつcamerarawで調整をしたいと思っています。

今の所bridgeで複数枚をオブジェクトで全て開いて手作業で一枚のファイル上に乗せる作業をしていますが、多い時は15枚ほどの写真を扱うので簡単にできる方法がありましたら教えてください。

よろしくお願いいたします

This topic has been closed for replies.

2 replies

April 9, 2023

そういうの標準の機能にあってもいいとは思いますねー

無い?ので、こんなスクリプトどうですか?

殆ど、「ScriptingListener」プラグインで書き出したスクリプトそのままですが..

 

app.activeDocument = documents[0];
var docName = activeDocument.name;

while (documents.length > 1) {
// 次のドキュメントを選択
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putOffset(stringIDToTypeID("document"), 1);
desc.putReference(stringIDToTypeID("null"), ref);
desc.putInteger(stringIDToTypeID("documentID"), 1518);
desc.putBoolean(stringIDToTypeID("forceNotify"), true);
executeAction(stringIDToTypeID("select"), desc, DialogModes.NO);

// ドキュメントを複製
var desc = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putEnumerated(stringIDToTypeID("layer"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
desc.putReference(stringIDToTypeID("null"), ref1);
var ref2 = new ActionReference();
ref2.putName(stringIDToTypeID("document"), docName);
desc.putReference(stringIDToTypeID("to"), ref2);
desc.putInteger(stringIDToTypeID("destinationDocumentID"), 1502);
desc.putInteger(stringIDToTypeID("version"), 5);
var list = new ActionList();
list.putInteger(3);
desc.putList(stringIDToTypeID("ID"), list);
executeAction(stringIDToTypeID("duplicate"), desc, DialogModes.NO);

// ドキュメントを閉じる
var desc = new ActionDescriptor();
desc.putEnumerated(stringIDToTypeID("saving"), stringIDToTypeID("yesNo"), stringIDToTypeID("no"));
desc.putInteger(stringIDToTypeID("documentID"), 1510);
desc.putBoolean(stringIDToTypeID("forceNotify"), true);
executeAction(stringIDToTypeID("close"), desc, DialogModes.NO);
}
 
 
前準備として、Photoshopではドキュメントを開かずまっさらな状態にしておく。終了しておく方がいい??
BridgeでRAWを複数選択してCameraRawで開き、全選択後“オブジェクトで開く”で取り敢えずスマートオブジェクトとして個別のドキュメントで開く。
後はスクリプトを実行すれば先頭のドキュメントに纏められるはず。
 

 
ajabon grinsmith
Community Expert
Community Expert
March 27, 2023

バージョンとか知りませんが

Photoshopの環境設定どうなってますか