Photoshop で実行してチャンネルを調整するスクリプトを作成したいと考えています。私の目標は、既知の色、たとえば 0,0,255(青) を取り、それを黄色、赤、または緑などに変更することです。
私がやりたいのは、これを行う関数を作成することです。これまでに得たもの
function changeChannel()
{
var sColor = new SolidColor();
var chDesc = new ActionDescriptor ;//channel descriptor
var cdesc = new ActionDescriptor ;// color descriptor
cdesc.putDouble(charIDToTypeID("Rd "),sColor.rgb.red);
...
execute(charIDToTypeID("ChnM"),...No idea)
この後どこに行けばいいのかわからない。