コード例 #1
0
ファイル: Action.cs プロジェクト: solarbluseth/thecodingfrog
 /// <summary>
 /// Hides all layers.
 /// </summary>
 private void hideAllLayers()
 {
     Photoshop.ActionReference __ref = new Photoshop.ActionReference();
     __ref.PutEnumerated(__appRef.CharIDToTypeID("Lyr "), __appRef.CharIDToTypeID("Ordn"), __appRef.CharIDToTypeID("Trgt"));
     Photoshop.ActionList __list = new Photoshop.ActionList();
     __list.PutReference(__ref);
     Photoshop.ActionDescriptor __desc = new Photoshop.ActionDescriptor();
     __desc.PutList(__appRef.CharIDToTypeID("null"), __list);
     __appRef.ExecuteAction(__appRef.CharIDToTypeID("Hd  "), __desc, Photoshop.PsDialogModes.psDisplayNoDialogs);
 }