1

Photoshop スクリプトを使用して (距離、サイズなどを定義して) ドロップ シャドウを追加するにはどうすればよいですか?

現在の JS コード

var fontSize = 14;
var fontName = "Arial-Bold"; // NB: must be postscript name of font!
// This is the colour of the text in RGB
//Click foreground colour in Photoshop, choose your colour and read off the RGB values
//these can then be entered below.
 var textColor = new SolidColor(); 
        textColor.rgb.red  = 255; 
        textColor.rgb.green =255; 
        textColor.rgb.blue = 255; 

var newTextLayer = doc.artLayers.add(); 
newTextLayer.kind = LayerKind.TEXT; 
newTextLayer.textItem.size = fontSize; 
newTextLayer.textItem.font = fontName;
newTextLayer.textItem.contents = ++Count; 
newTextLayer.textItem.color = textColor; 
newTextLayer.textItem.kind = TextType.PARAGRAPHTEXT; 
newTextLayer.textItem.height = fontSize; 
newTextLayer.textItem.width = doc.width -20;
//The line below is the text position (X Y)  IE; 10 Pixels Right 10 Pixels Down
newTextLayer.textItem.position = Array(10, 12); 
//  Can be RIGHTJUSTFIED LEFTJUSTIFIED CENTERJUSTIFIED 
newTextLayer.textItem.justification=Justification.CENTERJUSTIFIED; 
4

1 に答える 1

1

これにはAPI関数はないと思います。あなたができる最善のことは、Scriptlistnerを使用することです。生成されたコードは、スクリプトで使用できます。

以下は、Scriptlistner によって生成されたコードに関する同様の議論です。

http://ps-scripts.com/bb/viewtopic.php?t=586 または

http://ps-scripts.com/bb/viewtopic.php?t=2207

于 2011-06-24T14:05:32.737 に答える