[solved] How to scale several objects by either height or width only?

Post questions on how to use or achieve an effect in Inkscape.
theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

[solved] How to scale several objects by either height or width only?

Postby theozh » Fri Jun 02, 2017 3:40 am

Is there an efficient way to scale different objects with different sizes to the same size (either height or width) of a reference object?

Of course, I can e.g. copy the height of the reference object and paste it manually for all other objects, one after another.
The Transform Dialog (Shift+Ctrl+M) allows to scale in % or in absolute units, and proportionally, but not just either the height or the width.
So basically, I want to set the height, e.g. 50 mm, but keep the different widths at 100%. But the unit is always for both, height and width.
Is there any good solution for this which I overlooked?
Last edited by theozh on Fri Jun 02, 2017 3:34 pm, edited 1 time in total.
Win7/64, Inkscape 0.92.2

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to scale several objects by either height or width only?

Postby Lazur » Fri Jun 02, 2017 4:32 am

Hi.

I think it worths a bug report as a feature request to have a dropdown menu to both height and width values in the transformation panel if there isn't one existing. If I understand right you'd set 50 mm for height and 100% for width.

My guess is that an extension could be written to do the job but I have no idea where to start with python.

Svg can use viewboxes to stretch objects to a certain size, guess in that case you could also achieve the result by editing in the corresponding parts in a text editor...

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to scale several objects by either height or width only?

Postby Moini » Fri Jun 02, 2017 9:41 am

Yes, it seems you overlooked the options 'paste height separately' and 'paste width separately' in the Edit -> Paste Size submenu.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to scale several objects by either height or width only?

Postby Lazur » Fri Jun 02, 2017 9:47 am

I'm guilty of that one as well. Should have explored the new features before.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to scale several objects by either height or width only?

Postby Moini » Fri Jun 02, 2017 11:07 am

(It's not new, even - sorry... ;-) Don't worry!)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to scale several objects by either height or width only?

Postby theozh » Fri Jun 02, 2017 3:25 pm

Thanks, @Moini, that's it.
I never would have searched in "paste". Well, ok, you're pasting a size...
Afterwards it's "obvious" ;-)

Comment: if you have a reference object then it's all fine. If you just want to set the height or width to a certain value you would have to draw a helper object first and delete it afterwards :-|. That's why different scale units for height and width in the Transform Dialog would be "more obvious" to me.

Something like below. Just a thought...
A "lock" to force units to stay equal when one is changed would be convenient. Like the "lock" for proportional resizing in the Tool Controls Bar.
In the current Transform Dialog, however, it's a Check Box "scale proportionally".

TransformDialogWithDifferentUnitsForHeight&Width2.png
TransformDialogWithDifferentUnitsForHeight&Width2.png (14.98 KiB) Viewed 2836 times
Win7/64, Inkscape 0.92.2

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [solved] How to scale several objects by either height or width only?

Postby Moini » Fri Jun 02, 2017 10:09 pm

Lol, people are very different ;-)
I almost never use that dialog - I prefer a visual cue to number fields, or mostly just use the fields in the selection tool's tool controls bar.

The 'scale proportionally checkbox doesn't appear to work when 'scale each object separately' is active - so maybe that's the underlying issue?... It should have a way to remember which of the dimensions you have changed.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: [solved] How to scale several objects by either height or width only?

Postby tylerdurden » Fri Jun 02, 2017 11:12 pm

Moini wrote:Lol, people are very different ;-)
I almost never use that dialog - I prefer a visual cue to number fields, or mostly just use the fields in the selection tool's tool controls bar.


Selection tool scale controls scale from object's origin (lower left) , whereas the Transform panel will scale from the object center, so I consider that issue to choose the scaling tool. :geek:
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [solved] How to scale several objects by either height or width only?

Postby Moini » Fri Jun 02, 2017 11:39 pm

If you hold Shift, then Selector tool scales from the center ;-) (should I add two geek icons now :-P ?) Sorry for being a wiseass! (hopefully, a nice one, at least...)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: [solved] How to scale several objects by either height or width only?

Postby tylerdurden » Sat Jun 03, 2017 4:43 am

Moini wrote:If you hold Shift, then Selector tool scales from the center ;-) (should I add two geek icons now :-P ?) Sorry for being a wiseass! (hopefully, a nice one, at least...)


Do you mean with using the transform handles? Then yes, scale from center with dragging...

But with the (cough) Scale Tool controls , maybe not so much?
Image
:mrgreen:
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: [solved] How to scale several objects by either height or width only?

Postby Lazur » Sat Jun 03, 2017 5:01 am

(cough) Blender can snap a 3D cursor to selected and you can set objec's origin to the 3D cursor. And have an option to apply scale/rotation individually. And it's not a cad progream either.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [solved] How to scale several objects by either height or width only?

Postby Moini » Sat Jun 03, 2017 7:17 am

Ah, so that's what you meant, TD :)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”