Skip to main content
silk-m
Community Expert
Community Expert
11月 24, 2019 10:21 午前 UTC
解決済み

マルチチャンネルモードでチャンネル全てを選択するスクリプト

こんにちは

スクリプトは初心者です。マルチチャンネルモードでチャンネル全てを選択するスクリプトがありますか?

チャンネル名は決まったものではありません。最大20チャンネル位になる場合もあります。

 

これを

こうしたいです。

 

このトピックへの返信は締め切られました。
Kukurykus
Kukurykus解決!
Legend
11月 24, 2019 11:19 午前 UTC

It works when like in your example there are no default Color Mode Channels (so like for ex. RGB):

 

sTT = stringIDToTypeID; for(i = 0; i < (cnl = activeDocument.channels).length;) {
	(ref = new ActionReference()).putName(sTT('channel'), cnl[i++].name);
	(dsc = new ActionDescriptor()).putReference(sTT('null'), ref)
	dsc.putBoolean(sTT('extend'), true), executeAction(sTT('select'), dsc)
}

返信数 4

Kukurykus
Kukurykus解決!
Legend
11月 24, 2019 11:19 午前 UTC

It works when like in your example there are no default Color Mode Channels (so like for ex. RGB):

 

sTT = stringIDToTypeID; for(i = 0; i < (cnl = activeDocument.channels).length;) {
	(ref = new ActionReference()).putName(sTT('channel'), cnl[i++].name);
	(dsc = new ActionDescriptor()).putReference(sTT('null'), ref)
	dsc.putBoolean(sTT('extend'), true), executeAction(sTT('select'), dsc)
}
翻訳
silk-m
Community Expert
silk-mCommunity Expert作成者
Community Expert
11月 24, 2019 3:28 午後 UTC

Hi, Kukurykus
Your script worked perfectly.
Thank you.

 

Best regards,

 

翻訳
--Susumu Iwasaki
Kukurykus
Legend
11月 24, 2019 3:30 午後 UTC

I saw you liked me as i_was5, but then changed to current account and reliked me 😉

翻訳