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

Get xy position of glyph

Community Beginner ,
Dec 07, 2021 Dec 07, 2021

Copy link to clipboard

Copied

If I use the arrow keys to go threw a text then in the info panel I can see the X and Y coordinate relative to the text container.

Is it possible to retreive this x and y coordinate for each glyph in the text with a script?

TOPICS
Scripting

Views

87

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
Community Expert ,
Dec 07, 2021 Dec 07, 2021

Copy link to clipboard

Copied

LATEST

Try this—it would be relative to the current ruler zeropoint:

 

 

var x = app.activeDocument.selection[0].horizontalOffset;
var y = app.activeDocument.selection[0].baseline

alert("x: " + x + "\ry: " + y);

 

 

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