• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to change reference point to center?

Guest
Apr 08, 2013 Apr 08, 2013

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

TOPICS
Scripting

Views

864

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 08, 2013 Apr 08, 2013

Copy link to clipboard

Copied

LATEST

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines