Script to add 3mm to an object

Explorer ,
Mar 25, 2021 Mar 25, 2021

Copy link to clipboard

Copied

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

Views

119

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

Adobe Community Professional , 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.

Likes

Translate

Translate
Adobe Community Professional ,
Mar 26, 2021 Mar 26, 2021

Copy link to clipboard

Copied

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

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
Explorer ,
Mar 26, 2021 Mar 26, 2021

Copy link to clipboard

Copied

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

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
Adobe Community Professional ,
Mar 26, 2021 Mar 26, 2021

Copy link to clipboard

Copied

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 )

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