rectangle horizontally

Post questions on how to use or achieve an effect in Inkscape.
geon
Posts: 18
Joined: Mon May 26, 2008 9:14 pm

rectangle horizontally

Postby geon » Fri May 29, 2009 6:51 pm

How to make rectangle, its lower line, precise horizontally? If I once rotate it, then I cant find any option to "level it horizontally" again. Thank you.

User avatar
EarlyBlake
Posts: 302
Joined: Tue Jun 03, 2008 5:42 pm

Re: rectangle horizontally

Postby EarlyBlake » Fri May 29, 2009 10:15 pm

You can do it with the snapping options. Turn on either bonding box snapping or node snapping under Shift Cntl D. Also turn on either snap to grid or pull down a guide line from the ruler and turn on snap to guides. If you want to keep the proportions probably using the snap bonding box corners is easier.

geon
Posts: 18
Joined: Mon May 26, 2008 9:14 pm

Re: rectangle horizontally

Postby geon » Wed Jun 03, 2009 2:21 am

Well I might do something wrong but nothing of these works with me. If I enable snapping and check on the Bounding to box corners I can not see any difference to when unchecked. If check on Snap to guides then it snaps always doesn't matter the rectangle baseline is horizontally or not.

Is there something like Transformation where I can set f.e. rotation exactly manually by numbers?

User avatar
EarlyBlake
Posts: 302
Joined: Tue Jun 03, 2008 5:42 pm

Re: rectangle horizontally

Postby EarlyBlake » Wed Jun 03, 2009 11:39 pm

Oops never mind I was thinking of something I did like 6 months ago to level a rectangle on a challenge without using XML. Now that I think about I left out a bunch of step that involved snapping the center of rotation twice and used couple of guide line and is complete over kill for what you want.

There are a bunch of other ways. One, you can use rotation snap, which does not work like translation snap. For snapping to an angle while rotating hold down the cntl while you rotate the rectangle. You set the snap step in inkscape preferences shfit cntl P >> steps then a drop down menu. Two, is transform under the object menu shfit cntl M. You can type in by hand how many degrees you want to rotate the rectangle. But you have to remember how far you rotated. If you typed in 43.21 degrees. You have to type in -43.21 to get it back to level.

geon
Posts: 18
Joined: Mon May 26, 2008 9:14 pm

Re: rectangle horizontally

Postby geon » Thu Jun 04, 2009 2:47 am

Still I can not get the result.

One: When holding CTRL while rotate it really snaps to some angles but, but *relatively* to angle I came from. Well And I would need to set absolutely zero angle to horizontal line.

Two: its the same again: its only relatively to current angle. Also, reverting the hostory of rotation is not for me cause I would like to have work for saved images.

Well, I have to satisfied with "approximately horizontally setting of baseline". Thank you for you time.

dvlierop
Posts: 139
Joined: Sat Sep 08, 2007 4:25 am

Re: rectangle horizontally

Postby dvlierop » Sun Jun 07, 2009 3:15 am

Currently, I think the only way to get it horizontal again is to open the xml-editor (ctrl-shift-x) and to delete the rectangle's "transform" attribute. If you want it rotated for example by 90 degrees then you can subsequently rotate it while holding the ctrl key.

While rotating using the selector tool, Inkscape doesn't snap, only because this has not been implemented yet. This has been planned for the v0.48 release though :-)

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: rectangle horizontally

Postby microUgly » Tue Jun 09, 2009 8:19 pm

I'm pretty sure Inkscape stores rotations in a matrix. Go to Object > Transform > Matrix, tick "edit current matrix" and change the A, B, C and D values to 1, 0, 0 and 1 respectively.

geon
Posts: 18
Joined: Mon May 26, 2008 9:14 pm

Re: rectangle horizontally

Postby geon » Tue Jun 09, 2009 8:33 pm

yes, that works!

dvlierop
Posts: 139
Joined: Sat Sep 08, 2007 4:25 am

Re: rectangle horizontally

Postby dvlierop » Tue Jun 09, 2009 11:27 pm

microUgly wrote:I'm pretty sure Inkscape stores rotations in a matrix. Go to Object > Transform > Matrix, tick "edit current matrix" and change the A, B, C and D values to 1, 0, 0 and 1 respectively.


Thanks, I didn't know that trick yet! :-)


Return to “Help with using Inkscape”