Skip to main content
New Participant
April 17, 2020
Answered

illustrator CC how to manually resize one object to match another

  • April 17, 2020
  • 2 replies
  • 1364 views

hi, i often want to manually resize one object to be the same height or width as another. in CS6, there was a "line" that would appear when drawing or resizing an object when it lined up with another nearby object. i can't seem to activate this now i'm in CC. how to do? tx!

This topic has been closed for replies.
Correct answer jane-e

Hi

That "line" is called Smart Guides. You can enable it from the View menu or with the keyboard shortcut of Cmd+U.

2 replies

rcraighead
Brainiac
April 17, 2020

If this is something you do regularly you could use this script to scale the top object to match the bottom object dimensions.

//by Ray Craighead
//Select 2 objects. Script will scale top object to match bottom object.

function scaleTopObject( ){
    var aDoc = app.activeDocument;
    var sel = aDoc.selection;
    var topObj = sel[0];
    var botObj = sel[1];
    topObj.width = botObj.width;
    topObj.height = botObj.height;
    }

if (selection.length == 2) {
  scaleTopObject( );
} else alert ("Select 2 object. Top object will scale to match bottom object.");

Here's a JSX file that can be placed in your "/Applications/Adobe Illustrator CC 2015.3/Presets.localized/en_US/Scripts" folder. After restarting Illustrator it will appear in "File>Scripts" menu.

 

https://www.dropbox.com/s/vlos0sb7d193r43/scaleTopObject.jsx?dl=0

 

jane-e
jane-eCorrect answer
Adobe Expert
April 17, 2020

Hi

That "line" is called Smart Guides. You can enable it from the View menu or with the keyboard shortcut of Cmd+U.

New Participant
April 17, 2020

thanks!

jane-e
Adobe Expert
April 17, 2020

You're welcome, Neuralized, happy to help! 

~ Jane