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

47

Likes

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
Adobe Community Professional ,
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);

 

 

Likes

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