Mobile app version of vmapp.org
Login or Join
Correia448

: How to center group based on one member? I have a group of 2 objects a circle and a line. Looks like letter Q. I want to center this group, so that the circle will centered in a page

@Correia448

Posted in: #Alignment #Inkscape

I have a group of 2 objects a circle and a line. Looks like letter Q.

I want to center this group, so that the circle will centered in a page and the line will maintain its relative position to the circle.

Currently when I center the group Inkscape uses the group center not the circle center.

Thank you.

Sample picture:

Notice how this group is aligned to page center. I want to align it so that the circle is in the center.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia448

2 Comments

Sorted by latest first Latest Oldest Best

 

@RJPawlick971

Thanks for the picture. It's much clearer now. The solution I'd use is to create a bounding box of around each element, group those, then center the two groups. When finished, delete the bounding boxes. Example:

+---------------++----------------+
| xxxxx || |
| xx xx || |
| xx x || |
| x x || |
| x x || x |
| x x || xx |
| xx xx || xx |
| xxxxx || x |
+---------------++----------------+


The circle+square is one group, the line+ square is the other. You can now center them together while the line retains its relative position to the circle.

You can also consider looking into all of the 'snap to point' options in Inkscape. There many, many options and it's a bit confusing at first, but they can help greatly in aligning objects together on the page.

Another option:


copy the circle
position your circle wherever you intend to put it (via centering if you wish)
When you have it in the right position, drag the line and circle as a group and use snap-to-point to snap it into place.
Delete the copied circle

10% popularity Vote Up Vote Down


 

@Nickens508

It kind of tricky what you are trying to do... I can think of two ways, although I don't work with Inkscape but Illustrator:


Simple and most obvious, align the circle first and the reposition the line. But I get the feeling this is not something that didn't cross your mind already
Make the member you want to center(your circle) be in the center of the group.


First ungroup your objects and make another group, in this new group add another object...
an invisible line (a object with opacity set to 0) positioned exactly as your original line but in the opposite direction. I have an image to explain this technique :



To position this line exactly as the other line use the Align features such as Horizontal Distribute center and Vertical Distribute center...

Then after you have this new grouped object the center should be again in the center of the circle... hope you understand all this... its kind of ... invented on the spot... but it worked for me.. if you need further explanation just ask! :)

You don't really need to set the opacity of your new line to 0, you can simply delete it after the job is done... I was just thinking maybe you might need it later again so its better to leave it there untill you know you wont need it again, but you set the opacity to 0 so you don't see it...

This is much easyer to do in Flash, where you can move an objects(Symbol in Flash) Registration Point, if that exists in Inkscape... then, just do that...

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme