Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to only change y-position selected object(s)

New Here ,
Mar 04, 2020 Mar 04, 2020

Hello,

My google searches were unsuccesful. Maybe what I want to do is possible in InDesign itself, or maybe with a simple script. What I would like to do:

Change the selected object(s) (text and/or images) Y-position / value to for example 27mm (from the top-margin) of the document. The X-position should stay as it was as selected. I can enter this manually in the tranform box, but I would like to assign a script to a shortcut because I use this a lot.

 

Regards,

 

Geert

 

 

TOPICS
How to , Scripting
545
Translate
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 , Mar 04, 2020 Mar 04, 2020
  1. Are you always moving these objects to 27mm off the margin? If so, I would just use Object Styles with a fixed height position. Otherwise, I don't see how a script would be faster than using the transform field unless the script is doing other things. 
Translate
Community Expert ,
Mar 04, 2020 Mar 04, 2020
  1. Are you always moving these objects to 27mm off the margin? If so, I would just use Object Styles with a fixed height position. Otherwise, I don't see how a script would be faster than using the transform field unless the script is doing other things. 
Translate
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
New Here ,
Mar 05, 2020 Mar 05, 2020
LATEST

Thanks, that worked! I thought it would'nt work because I wanted to keep the original (different) object styles. But I made an new object style that ignored every setting except the position so the rest of the stuff remains. Now I have the object style assigned to a key so it works perfect for me.

 

 

 

 

Translate
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