adobe:adobe_photoshop:select_layer_by_index
**文書の過去の版を表示しています。**
インデックスからレイヤーを選択するスクリプト
- sample.jsx
function selectLayerByIndex(index,add){ add = (add == undefined) ? add = false : add; var ref = new ActionReference(); ref.putIndex(charIDToTypeID("Lyr "), index); var desc = new ActionDescriptor(); desc.putReference(charIDToTypeID("null"), ref ); if(add) desc.putEnumerated( stringIDToTypeID( "selectionModifier" ), stringIDToTypeID( "selectionModifierType" ), stringIDToTypeID( "addToSelection" ) ); desc.putBoolean( charIDToTypeID( "MkVs" ), false ); try{ executeAction(charIDToTypeID("slct"), desc, DialogModes.NO ); }catch(e){} };
adobe/adobe_photoshop/select_layer_by_index.1620036051.txt.gz · 最終更新: 2021/05/03 19:00 by ochiaimitsuo