【问题标题】:How to set stroke align in Adobe Illustrator with JavaScript如何使用 JavaScript 在 Adob​​e Illustrator 中设置笔触对齐
【发布时间】:2020-06-28 20:56:55
【问题描述】:

Adobe Illustrator 提供 JavaScript 库来构建批处理脚本。

var doc = activeDocument;
var rect = doc.pathItems.rectangle(700, 80, 400, 70);
rect.stroked = true;    // open stroke
rect.strokeWidth = 3;
var newRGBColor = new RGBColor();
newRGBColor.red = 200;
newRGBColor.green = 120;
newRGBColor.blue = 240;
rect.strokeColor = newRGBColor;
// and we also can set StrokeJoin and StrokeCap

但我找不到如何设置笔画对齐...

【问题讨论】:

  • 考虑为您的问题添加更多细节。

标签: javascript alignment adobe stroke


【解决方案1】:

迟到了,但你走了:

rect.strokeCap = StrokeCap.BUTTENDCAP;//ROUNDENDCAP, PROJECTINGENDCAP
rect.strokeJoin = StrokeJoin.ROUNDENDJOIN;//BEVELENDJOIN, MITERENDJOIN

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-15
    • 1970-01-01
    • 2012-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-04
    • 1970-01-01
    相关资源
    最近更新 更多