illustrator脚本 关于路径的所有属性和方法

线段 pathItem 属性 StrokeCap

这个属性的意思是,线头两端的端点形式。
平头端点:BUTTENDCAP
圆头端点:ROUNDENDCAP
方头端点:PROJECTINGENDCAP

下方是调用strokeCap属性的具体方法:

var doc = app.activeDocument;
var myPath = doc.pathItems.rectangle(100, 100, 200, 200);
myPath.strokeCap = StrokeCap.ROUNDENDCAP;

后续中。

你可能感兴趣的:(illustrator,ui)