Skip to main content
dzgnr89
Inspiring
April 19, 2020
Answered

Repeated resizing or repeated transform actions

  • April 19, 2020
  • 6 replies
  • 2166 views

In InDesign, if I have many images having different heights, and I want their height to be same, let's say 75 mm. I just change the height of one, then choose the option of Object>Transform sequence again individually. This does the job flawlessly.


How can I do this in Illustrator?

This topic has been closed for replies.
Correct answer Ton Frederiks

Maybe this looks more like what you want:

This script proportionally resizes all selected objects according to the height of the lowest selected object.

http://illustrator.hilfdirselbst.ch/dokuwiki/en/skripte/javascript/height_proportional

6 replies

Jacob Bugge
Community Expert
Community Expert
April 19, 2020

Hi Ton,

 

This seems to be a day of scripts.

 

The weather seems to have serious mood swings here, beween (near) frosty and hot; and maybe the beginning of a long drought like last year. How there?

 

Ton Frederiks
Community Expert
Community Expert
April 19, 2020

Yes Jacob, today they did run the sunny_windy script, perfect to do some work in the garden.

And we can use some rain too!

Ton Frederiks
Community Expert
Ton FrederiksCommunity ExpertCorrect answer
Community Expert
April 19, 2020

Maybe this looks more like what you want:

This script proportionally resizes all selected objects according to the height of the lowest selected object.

http://illustrator.hilfdirselbst.ch/dokuwiki/en/skripte/javascript/height_proportional

dzgnr89
dzgnr89Author
Inspiring
April 20, 2020

Thank you so much! This script works flawlessly like magic! I think I should request a feature in Illustrator for basic proportional resizing of objects like Adobe has in their InDesign. 

Ton Frederiks
Community Expert
Community Expert
April 20, 2020

Glad to hear that helped.

Jacob Bugge
Community Expert
Community Expert
April 19, 2020

arjun,

 

The JohnWundes setAllTheThings script lets you select the desired values of both W and H (or either (which may be appropriate in other cases) by removing the other one in the first option box), then it gives all paths the same values of both.

 

If you only know the desired new height to start with, you can start by scaling (or otherwise changing) the first object in the way that gives you to have both height and width for the script.

 

Jacob Bugge
Community Expert
Community Expert
April 19, 2020

arjun,

 

I believe you will really enjoy setAllTheThings in this set of free JohnWundes scripts,

 

http://www.wundes.com/JS4AI/

 

 

dzgnr89
dzgnr89Author
Inspiring
April 19, 2020

I should have mentioned it in the original post. If I mention only the height in the plugin box, my images are squished disproportionately. They have the same height indeed but the aspect ratio disappears. I'm surprised by the Adobe team of developers. They included this simple resize feature in InDesign and not in Illustrator. 

Anna Lander
Inspiring
April 19, 2020

If you plan to define the resizing in percents (e.g. 90%) instead of  the linear units, width or height or both, you can select all the needed objects and choose Object > Transform > Transform Each (Shift + Alt/Opt + Ctrl/Cmd + D)

dzgnr89
dzgnr89Author
Inspiring
April 19, 2020

Yeah I wish all the objects were equally sized initially and I could use percentages. They aren't. 

Ton Frederiks
Community Expert
Community Expert
April 19, 2020

In the Transform panel, enter the Height of one image and press Return.

Select the next image and choose Object > Transform > Transform again (Cmd or Ctrl D)

dzgnr89
dzgnr89Author
Inspiring
April 19, 2020

This method doesn't work. The other images is resized randomly after Ctrl+D as well as after choosing the command from the drop down menu. 

Ton Frederiks
Community Expert
Community Expert
April 19, 2020

Yes, I tried it with images that were the same size, but what this method is doing, it adds the same amount to the other images, so it will not work with images that have a different size.