我正在尝试为 InDesign CS5 脚本更改 javascript 中椭圆的参考点。这是我一直在尝试的:
function addFid(top, left, bottom, right) {
var circle = myDoc.ovals.add();
circle.geometricBounds = [top, left, bottom, right];
circle.fillColor = myDoc.swatches.item("Black");
circle.strokeWeight = 0;
// Apparently, this Object does not support this property or method
circle.transformReferencePoint = AnchorPoint.CENTER_ANCHOR;
}
但是由于某种原因,当我运行它时,我得到“对象不支持属性或方法'transformReferencePoint'”
我在任何地方都找不到正确的属性或方法(至少不是椭圆)
有什么帮助吗?