Positioning by centre of circle

Post questions on how to use or achieve an effect in Inkscape.
neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Positioning by centre of circle

Postby neilw » Tue Apr 23, 2013 6:38 am

Hello,
I'm drawing a large number of circles and wish to have their co-ordinates set (i.e. the origin) by the centre of the circle. But all it seems to do is use bottom/left, which seems daft when it comes to circles (IMHO).

Is there any way to change this? I also need to get centre-point positions for shapes that I've drawn by hand so centre-origin again is required so I can simply click on the circle and get it's x/y (otherwise I'll have to get my calculator out for every circle to work out the half-way points).

thanks.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Positioning by centre of circle

Postby ragstian » Tue Apr 23, 2013 6:47 am

Hi

Enable this in the snap toolbar; Snap- Centers of objects; Image

Good Luck.
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

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

Re: Positioning by centre of circle

Postby Lazur » Tue Apr 23, 2013 6:55 am

Here is another method described in the attachment, with the use of the align and distribute panel.
With that, you can get coordinate values as well.

Edit: Wasn't sure of what went wrong, here is a more detailed description than the previous.
Attachments
hlp28 (1).svg
(20.71 KiB) Downloaded 927 times
Last edited by Lazur URH on Tue Apr 23, 2013 7:56 am, edited 1 time in total.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Positioning by centre of circle

Postby ragstian » Tue Apr 23, 2013 7:28 am

Hi Lazur

What is this "attachment" word in the text linked to ???
Hijacked site??

Screendump; Image

Most annoying POS ever!

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: Positioning by centre of circle

Postby neilw » Tue Apr 23, 2013 7:48 am

Hello,
I'm doing that, but what I want is to get the x/y co-ordinate of a shape from it's centre point. If you can place and draw an object by it's centre point (as mentioned above and what I'm doing) then surely you can get it's x/y position from the centre-point too? After drawing a shape, clicking on it shows it's x/y as the bottom left.

Thanks.

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

Re: Positioning by centre of circle

Postby Lazur » Tue Apr 23, 2013 8:08 am

Here is another method, if you want to know only the centre coordinates.
Attachments
hlp28II.svg
(24.94 KiB) Downloaded 601 times

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: Positioning by centre of circle

Postby neilw » Tue Apr 23, 2013 8:32 am

Why are you posting malware to threads LAZUR URH?

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Positioning by centre of circle

Postby v1nce » Tue Apr 23, 2013 9:02 am

Lazur URH is not to blame, just some stupid javascript of an ad campaign that replace keyword by some link of its own.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Positioning by centre of circle

Postby v1nce » Tue Apr 23, 2013 9:04 am

Test to see if the word attachment is hijacked by some javascript.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Positioning by centre of circle

Postby ragstian » Tue Apr 23, 2013 9:16 am

Hi.
Lazur URH is not to blame, just some stupid javascript of an ad campaign that replace keyword by some link of its own.


Where are the code hiding? Is it on the forum server or on our own machines? Or somewhere in between?

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

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

Re: Positioning by centre of circle

Postby Lazur » Tue Apr 23, 2013 9:22 am

I have no idea, chrome didn't load such ads here.
But if it would, then browsing on firefox, the adblocker add on could get rid of it.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Positioning by centre of circle

Postby v1nce » Tue Apr 23, 2013 9:30 am

Lazur URH wrote:I have no idea, chrome didn't load such ads here.
But if it would, then browsing on firefox, the adblocker add on could get rid of it.


Same here. Tested on Chromium (ubuntu 12.04) and opera : no link

chromium.jpg
chromium.jpg (54.58 KiB) Viewed 25322 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Positioning by centre of circle

Postby druban » Tue Apr 23, 2013 10:07 am

Time
Last edited by druban on Wed May 29, 2013 7:54 pm, edited 1 time in total.
Your mind is what you think it is.

User avatar
BobSongs
Posts: 324
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: Positioning by centre of circle

Postby BobSongs » Tue Apr 23, 2013 10:15 am

neilw wrote:Hello,
I'm drawing a large number of circles and wish to have their co-ordinates set (i.e. the origin) by the centre of the circle. But all it seems to do is use bottom/left, which seems daft when it comes to circles (IMHO).

To draw a circle and have it grow from the point where you first click the mouse, hold down the left Ctrl and Shift keys simultaneously. Click the drawing area where you wish the centre of the circle to be and drag the mouse in any of these directions: south-east, south-west, north-east, north-west.

The Ctrl key creates a circle rather than an ellipse. The Shift key grows it from the starting point.
neilw wrote:Is there any way to change this? I also need to get centre-point positions for shapes that I've drawn by hand so centre-origin again is required so I can simply click on the circle and get it's x/y (otherwise I'll have to get my calculator out for every circle to work out the half-way points).

thanks.

The way to find the centre-point for an object created is to click it once, then, click it a second time so that the control handles in the four corners become rounded arrows. A small + should appear in the centre of the object.

Please note: That + marker is the point around which the object rotates if rotation is desired. Moving it will not move the object. The + disappears as the object is moved, but will remain if the object is rotated.

Changing a tool’s defaults: double-click its icon on the left side of the work area. From my observation, however, the default way to create circles cannot be changed at that point.
Last edited by BobSongs on Wed Apr 24, 2013 12:27 am, edited 1 time in total.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Positioning by centre of circle

Postby ragstian » Tue Apr 23, 2013 11:10 am

Hi.

Druban - you're even worse!! :D :D :D

Image

If the malware are on my computer - how come it's only this thread that's affected?

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Positioning by centre of circle

Postby ragstian » Tue Apr 23, 2013 11:47 am

Hi.

Found a recently installed program called "Fast Free Converter" on my machine.

After uninstalling this POS the active links seems to be gone.
( Did also clear all history, cache and cookies - can have been lurking in there as well! )

How it managed to get installed on my machine is beyond me!

RGDS
Ragnar
Last edited by ragstian on Tue Apr 23, 2013 11:58 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Positioning by centre of circle

Postby brynn » Tue Apr 23, 2013 11:52 am

I'm not seeing any text links from Firefox. But I do see it on Ragnar's screenshot. Some of you guys are way more technically aware than I am. But my responsibility at this point is to decide whether to alert the admin to potential security issues for the forum. From my point of view, this shouldn't be happening on a secure forum, regardless of individual members' or visitors' system/internet security. On the other hand, microUgly does use advertising on this forum, presumably to raise income.

Is this advertising, or is it malware? I realize some people (like me) consider advertising to be a form of malware. But if it's purely advertising, I'd say get a good ad blocker. Maybe the reason I don't see it is because I've got ads blocked for InkscapeForum?

Ragnar, you posted while I was typing. You're not the only one who sees this. The op reported the posts, so apparently he sees them too.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Positioning by centre of circle

Postby brynn » Tue Apr 23, 2013 1:22 pm

Ragnar and anyone else: http://malwaretips.com/blogs/remove-text-enhance-virus/

PS -- And thanks to those who managed to answer the question amidst all the drama, lol!

User avatar
BobSongs
Posts: 324
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: Positioning by centre of circle

Postby BobSongs » Wed Apr 24, 2013 12:22 am

I never allow the drama of a forum to bother me.

Now, STOP YELLING, PEOPLE!!!!

Whups!

:D ju-u-u-u-ust kidding.

My way of dealing with spammy websites:

Firefox > Ctrl+Shift+A (addons) > install Adblock Plus. The same addon is available for Google Chrome and Seamonkey, but I don't know if it works on any further browsers. I have my doubts whether Internet Explorer has anything comparable to it.

If the junk can’t get in in the first place, there’s less work for your protection software to do. :D

P.S. :: This forum is one of the kindest, calmest forums I’ve seen. To have a little hubbub like the above? It’s more “cute” than anything else. :D

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: Positioning by centre of circle

Postby Grobe » Wed Apr 24, 2013 1:56 am

We'll se what happens with my posts. NoScript should kill any spem anyway :)

Anyway, another Inkscape tip: The center on a circle will not snap to other objects if the fill is completely transparent.
:lol:

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: Positioning by centre of circle

Postby neilw » Wed Apr 24, 2013 5:38 am

Hello,
Sorry, I don't know if I'm not making myself clear or if I missed the answer with all the malware ;)

I know how to place and draw a circle from a centre point, what I want is to click on a circle and get it's x/y position at it's centre, not it's bottom left as it is showing me now. If you can place a shape and extend out from a centre surely a good option is to let you get that position back?

Thanks.

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

Re: Positioning by centre of circle

Postby Lazur » Wed Apr 24, 2013 5:45 am

All answered in the ATTACHED svg-s.

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: Positioning by centre of circle

Postby neilw » Wed Apr 24, 2013 5:55 am

Thanks, I didn't download your attachment as last time it had malware and my computer threw a wobbler when I clicked on it ;)

As for your answer, I guess that means you can't do it easily. In my case it's easier to get the X and add half the width in a calculator. Maybe the best option is if I take the time out to look at the plugin api.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Positioning by centre of circle

Postby ragstian » Wed Apr 24, 2013 6:18 am

Hi
what I want is to click on a circle and get it's x/y position at it's centre, not it's bottom left as it is showing me now.


You can see the X and Y coordinates in the XML editor - Shift + Ctrl + X

Be aware that the Coordinates are the SVG coordinates ( Where the origin is in the upper left corner ).
What's shown on the rulers along the canvas is Inkscape "user" coordinates.
http://tutorials.jenkov.com/svg/svg-coordinate-space.html

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

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

Re: Positioning by centre of circle

Postby Lazur » Wed Apr 24, 2013 6:20 am

neilw wrote:Thanks, I didn't download your attachment as last time it had malware and my computer threw a wobbler when I clicked on it ;)

As for your answer, I guess that means you can't do it easily. In my case it's easier to get the X and add half the width in a calculator. Maybe the best option is if I take the time out to look at the plugin api.


That is by few clicking.
I have no idea how typing in five or more digits and calculating it is faster to you.
Easier than the one with the scaling down with 50% method. I can't belive it.


Return to “Help with using Inkscape”