Is there a way to select reference point without clicking

Engaged ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

CleanShot 2022-08-09 at 13.06.56.png

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.

 

 

TOPICS
How to , Scripting

Views

53

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

correct answers 1 Correct answer

Community Expert , Aug 09, 2022 Aug 09, 2022

Use the transformReferencePoint of the latyout window:

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

P.

Likes

Translate

Translate
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Use the transformReferencePoint of the latyout window:

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

P.

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
Engaged ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Thank you Peter. Much appreciated. 

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
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

LATEST

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 )

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