var Docs = app.documents;
var FFilename = "";
var Filename = "";
var Dot = "";
FFilename = Docs[0].name;
Dot = FFilename.lastIndexOf('.');
Filename = FFilename.substring(0,Dot);
var Artlayer ="";
Artlayer = Docs[0].artLayers.add();
Artlayer.kind = LayerKind.TEXT;
var Textitem = Artlayer.textItem;
Textitem.contents = Filename;
Textitem.size = 80;
Textitem.color.rgb.blue = 255;
Artlayer.translate(0,0);
最后修改:2024 年 06 月 05 日
© 允许规范转载