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?
Copy link to clipboard
Copied
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);