Skip to main content
danielw42205661
Known Participant
March 26, 2021
Answered

Script to add 3mm to an object

  • March 26, 2021
  • 2 replies
  • 459 views

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! 

 

 

This topic has been closed for replies.
Correct answer Charu Rajput

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.

2 replies

Community Expert
March 26, 2021

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 )

Charu Rajput
Community Expert
Charu RajputCommunity ExpertCorrect answer
Community Expert
March 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
danielw42205661
Known Participant
March 26, 2021

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