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

Is there a way to scale up a bunch of rectangles in the x or y direction by the same delta value?

Community Beginner ,
Jan 20, 2023 Jan 20, 2023

Copy link to clipboard

Copied

Greetings,

I would like to be able to grab different size rectangles at the same time and scale them all up by +5 inches in the Height (y-direction), instead of having to click on each rectangle one by one. How can this be done? Thanks for your help.

TOPICS
How to

Views

33

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
Community Expert ,
Jan 20, 2023 Jan 20, 2023

Copy link to clipboard

Copied

LATEST

Hi @TestriteVisual , I think you would have to use a script. try this:

 

 

app.scriptPreferences.measurementUnit = MeasurementUnits.INCHES;
var h = 5;
var s = app.activeDocument.selection
var b;
for (var i = 0; i < s.length; i++){
    if (s[i].constructor.name == "Rectangle") {
        b= s[i].geometricBounds
        s[i].geometricBounds = [b[0],b[1],b[0]+h, b[3]]
    } 
};   
app.scriptPreferences.measurementUnit = AutoEnum.AUTO_VALUE;

 

Screen Shot 13.pngScreen Shot 14.png

 

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