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

Script to add 3mm to an object

Participant ,
Mar 25, 2021 Mar 25, 2021

Hi there,

 

Am hoping this is a very simple script someone wouldn't mind showing me. 

 

I deal with 3mm bleed a lot so would love a script that adds 3mm height to the top of an object (described in screenshot below).

 

I want it to be instant so dialogue boxes aren't necessary. Once I get a working script i can duplicate and adjust to do separate scripts for the left, right and bottom. 

 

Thanks so much! 

 

danielw42205661_0-1616739915490.png

 

TOPICS
Scripting
466
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 26, 2021 Mar 26, 2021

Hi,

Try following after selecting the object

 

 

app.selection[0].geometricBounds = new Array(app.selection[0].geometricBounds[0] - 3, app.selection[0].geometricBounds[1], app.selection[0].geometricBounds[2], app.selection[0].geometricBounds[3])

 

 

 

NOTE : Not yet tested in all cases.

Translate
Community Expert ,
Mar 26, 2021 Mar 26, 2021

Hi,

Try following after selecting the object

 

 

app.selection[0].geometricBounds = new Array(app.selection[0].geometricBounds[0] - 3, app.selection[0].geometricBounds[1], app.selection[0].geometricBounds[2], app.selection[0].geometricBounds[3])

 

 

 

NOTE : Not yet tested in all cases.

Best regards
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
Participant ,
Mar 26, 2021 Mar 26, 2021

Thanks so much! Works perfectly as desired. This will change my life. 

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
Community Expert ,
Mar 26, 2021 Mar 26, 2021
LATEST

Hi Daniel,

also look into the FillBleedBeta script by Marc Autret:

https://www.indiscripts.com/post/2018/03/fill-bleed-fix-image-frames-so-they-meet-bleed-edge

 

Regards,
Uwe Laubender

( ACP )

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