Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Script to make custom size rectangular box shape

New Here ,
Sep 09, 2021 Sep 09, 2021

Copy link to clipboard

Copied

Hi,

Could anyone guide me with making a script that would generate a rectangle shape, where the user could specify:

Width, height, linetype (defaults to dashed), outline thickness, outline color (defaults to black), no fill or fill color (but defaults to no fill), bleed size (defaults to 1/2")

 

Ideally the script would generate a graphic template like the sample below: a dashed line black rectangle (Finished Size Rectangle) based on the the user inputted width and height, but would also generate two more rectangles:

  • Bleed Rectangle: a second larger outline only red rectangle (with a 50% transparency) that is offset outward by the bleed size on each of the 4 sides, and that has a line thickness equal to the bleed size. 
  • Safe Zone Rectangle: a third smaller green outline only that is offset inward by 1" on each of the 4 sides.
  • And also fill in the Text Variables circled in red on my sample attached, based on the inputted values

 

As a bonus it would be great if the Document Setup dimensions would be able to update automatically to the values of the red Bleed Rectangle.

 

Thanks for any help you can provide on this!!!template sample.jpg

TOPICS
Scripting

Views

31

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
Advocate ,
Sep 09, 2021 Sep 09, 2021

Copy link to clipboard

Copied

LATEST

Hello @TestriteVisual,

 

I created a similar type script you can use as a starting point, you'll need to modify it to your specific needs.

you can find it in the post below...

https://community.adobe.com/t5/indesign-discussions/auto-generate-boxes-from-measurements/m-p/104714...

 

Regards,

Mike

 

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