Skip to main content
Bedazzled532
Inspiring
December 27, 2023
Answered

Reference Point Script

  • December 27, 2023
  • 1 reply
  • 992 views

Hello

 

I have a script which rotates an object (textframe) with object style "Signs" applied to it.

 

Script is working fine except that it requires Center point of the Proxy Refernce point to be activated. Therefore I would like incorporate that in the script itself. How do I do that ? 

I have attached a screenshot of what I want to set.

Thanks

This topic has been closed for replies.
Correct answer rob day

Try this—sets the Transform panel ref pont for the front window (not the application):

 

 

app.windows[0].transformReferencePoint = AnchorPoint.TOP_RIGHT_ANCHOR

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#LayoutWindow.html#d1e57100

 

 

 

1 reply

m1b
Community Expert
Community Expert
December 27, 2023

Hi @Bedazzled532, please have a look at my script answering this question. You can see that I do the rotation using a matrix, from AnchorPoint.centerAnchor, which is I think what you are asking. Let me know if I haven't understood correctly.

- Mark

Bedazzled532
Inspiring
December 27, 2023

Hello @m1b

Thanks for the reply. What I want is bit different.

I want to set the point of my choice before rotation or moving or doing any kind of transformation. After I am done with it, I want to set it back to what it was.

I checked indesignjs.de site but I am not able to find the exact option where I can set that proxy.

m1b
Community Expert
Community Expert
December 27, 2023

Hi @Bedazzled532, as far as I know, there is no property of page items for what you are talking about. What is your actual need? eg. do you want to rotate or scale a page item around a particular point? This is possible.

- Mark