を参照してください。警告の
// usage
change_levels(21, 0.5, 255)
function change_levels(num1, num2, num3)
{
// num1 integer 0 - 255
// num2 double 0.0 - 1.0
// num3 integer 0 - 255
// =======================================================
var id487 = charIDToTypeID("Lvls");
var desc108 = new ActionDescriptor();
var id488 = charIDToTypeID("Adjs");
var list19 = new ActionList();
var desc109 = new ActionDescriptor();
var id489 = charIDToTypeID("Chnl");
var ref72 = new ActionReference();
var id490 = charIDToTypeID("Chnl");
var id491 = charIDToTypeID("Chnl");
var id492 = charIDToTypeID("Cmps");
ref72.putEnumerated(id490, id491, id492);
desc109.putReference(id489, ref72);
var id493 = charIDToTypeID("Inpt");
var list20 = new ActionList();
list20.putInteger(num1); // num 1
list20.putInteger(num3); // num 3
desc109.putList(id493, list20);
var id494 = charIDToTypeID("Gmm ");
desc109.putDouble(id494, num2); //num 2
var id495 = charIDToTypeID("LvlA");
list19.putObject(id495, desc109);
desc108.putList(id488, list19);
executeAction(id487, desc108, DialogModes.NO);
}
ワード:あなたはガンマ値を調整する必要があり(多分0と1の間の入力それはhasnとしてPhotoshopの値9.99と0.10から調整されています)しかし、それを関数に追加できるはずです。
node.jsに関する回答を望まない場合は、node.jsタグを削除してください。 – xenoid
Node.jsタグが削除されました – mrpatiwi