Skip to main content
dublove
Legend
Dec 4, 2026 4:50 PM UTC
Question

How to obtain the coordinate data of the current mouse?

Hello everyone.

For example, if I select an object using the selection tool, can I know the position of my mouse throughout the entire layout?
I want to compare the positional relationship between the mouse [X, Y] coordinates and visibleBounds.

 

    2 replies

    CORCTON
    Community Expert
    Community Expert
    Dec 4, 2026 6:06 PM UTC

    Hi dublove — yes: open Window > Info. As you move the mouse over the layout, the Info panel shows the live X and Y of the pointer. With an object selected, the Control panel (as in your screenshot) or the Transform panel (Window > Object & Layout > Transform) shows the object's X and Y, so you can compare the two directly — both are measured from the same ruler origin, in the units shown. One thing to keep in mind if you are comparing with visibleBounds in a script: visibleBounds is always in points, in the order [top, left, bottom, right], so convert your Info panel values to points first if your rulers use another unit.

    Translate
    dublove
    dubloveAuthor
    Legend
    Dec 5, 2026 2:58 AM UTC

    Seeing it doesn't have much  significance.

    How to obtain coordinate values using a script?

    This should be another secret that InDesign does not disclose publicly.

     

    Ah, too many secrets.

    Translate