Skip to main content
Inspiring
August 9, 2022
Answered

Is there a way to select reference point without clicking

  • August 9, 2022
  • 2 replies
  • 478 views

Is there a way to choose the reference point without clicking. It would be very helpful to be able to so this for some of my macros, or so I could preselect a reference point (so the grid always appears in a reliable way with the same ref point selected) then use "Click at found image" in Keyboard Maestro.

 

 

This topic has been closed for replies.
Correct answer Peter Kahrel

Use the transformReferencePoint of the latyout window:

app.windows[0].transformReferencePoint = AnchorPoint.TOP_LEFT_ANCHOR;

P.

2 replies

MrZZYAuthor
Inspiring
August 9, 2022

Thank you Peter. Much appreciated. 

Community Expert
August 9, 2022

Hi @MrZZY ,

alternative values for transformReferencePoint can be found in the DOM documentation:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#AnchorPoint.html#d1e102866

 

Regards,
Uwe Laubender
( Adobe Community Professional )

Peter KahrelCorrect answer
Community Expert
August 9, 2022

Use the transformReferencePoint of the latyout window:

app.windows[0].transformReferencePoint = AnchorPoint.TOP_LEFT_ANCHOR;

P.