0

我正在尝试为 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'”

我在任何地方都找不到正确的属性或方法(至少不是椭圆)

有什么帮助吗?

4

1 回答 1

1

transformReferencePoint 是一个 LayoutWindow 属性。

app.activeWindow.transformReferencePoint = AnchorPoint.CENTER_ANCHOR;

那应该可以解决您的问题。

洛伊克

于 2012-06-28T17:48:05.213 回答