Copy link to clipboard
Copied
Hi all,
I have page item and angle through which i want to move. I want a page item to be moved from center.
So how do change it from topLeft to center?
Thanks In advance,
Pooja
Copy link to clipboard
Copied
Hi,
two choices (or more 😉 )
1. app.activeWindow.transformReferencePoint = AnchorPoint.CENTER_ANCHOR//which is a genereal setting ...
2. //use transform:
var currGraphic = app.selection[0];
var theRotateMatrix = app.transformationMatrices.add({counterclockwiseRotationAngle:-90});
currGraphic.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.centerAnchor, theRotateMatrix);