I'm trying to change the reference point of an oval in javascript for an InDesign CS5 script. Here's what I've been trying:
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;
}
For some reason though, when I run this, I get "Object does not support the property or method 'transformReferencePoint'"
I can't find the correct property or method anywhere though (at least not for ovals)
Any help?