STILL confused about snapping

Post questions on how to use or achieve an effect in Inkscape.
User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

STILL confused about snapping

Postby brynn » Tue Jul 08, 2008 4:39 am

Hello again :shock:
Ok, this is in 0.46. I have the Snap settings as follows:

What snaps = Nodes
Snap to objects = Snap to nodes, Snap distance = 25
Snap to grids = Snap distance = 10
Snap to guides = Snap distance = 20

Should nodes snap to each other? What I'm working on at the moment, some nodes snap and some don't. After a bunch of trials with simple, sample paths, I've discovered that if paths are Combined, their nodes don't snap! Is that how it's supposed to be? Grouping doesn't seem to affect snapping of nodes, but if their paths have been Combined, they won't snap to each other.

I haven't tested snapping to grids, guides or paths, or any snapping of bounding boxes -- not in the detail that I just did with nodes. But based on previous experience, sometimes things snap and sometimes they don't, I'm guessing that snapping is meant to be conditional.

So is the combining of paths the only thing that affects snapping? Or are there other conditions for snapping, as well? (I mean besides the snapping distance -- I understand the snapping distance)

Thanks for your help :D

SureWhyNot
Posts: 137
Joined: Mon Jun 16, 2008 11:37 pm
Location: United States

Re: STILL confused about snapping

Postby SureWhyNot » Tue Jul 08, 2008 7:50 am

I think having stuffed locked or on different layers makes things not snap. :?

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

Re: STILL confused about snapping

Postby brynn » Tue Jul 08, 2008 7:59 am

This is all on one layer and nothing is locked.

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

Re: STILL confused about snapping

Postby microUgly » Tue Jul 08, 2008 6:46 pm

Post the image for us to examine.

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

Re: STILL confused about snapping

Postby dvlierop » Wed Jul 09, 2008 5:01 am

Hi Brynn,

OK, first of all a short disclaimer: snapping is still a works-in-progress and you will run into bugs and inconsitencies. I haven't had much time last two months to work on the snapping code, but I hope to pick things up again shortly.

Are you using a recent SVN version? Snapping to paths and nodes has been improved since the latest release, see the release notes for the upcoming v0.47:

"The node tool now snaps to any unselected node (cusp or smooth) within the path that's being edited, and to cusp nodes of other paths. It also snaps to the path itself, but only to the stationary segments in between two unselected nodes. It is now also possible to snap while moving nodes along a vertical or horizontal constraint"

Regards,

Diederik

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

Re: STILL confused about snapping

Postby brynn » Wed Jul 09, 2008 6:26 pm

Ok, I've made some samples to show what's happening. Here's a screen shot:
Image
Here's I've shown that the 3 paths on the left are combined.
Here's a link to the .svg uploaded to petaIMG, so you can open it in Inkscape and try what I'm about to describe. http://www.petaimg.com/uploads/1215631718.svg

So here's what I've observed about snapping and combined paths:
1. Nodes of paths that are combined will not snap to each other.
2. Nodes of paths that are not combined will snap to each other.
3. Nodes of uncombined paths will snap to nodes of combined paths.
4. Nodes of combined paths will snap to nodes of uncombined paths.

Is this how it's supposed to be? Is there any way to have nodes of combined paths snap to each other, beside uncombining them?

Thanks for your help :D

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

Re: STILL confused about snapping

Postby dvlierop » Wed Jul 09, 2008 7:03 pm

I've just tested this with the latest pre-compiled SVN version on WindowsXP (http://inkscape.modevia.com/win32/Inkscape0807081634.7z), and it works as expected. See the picture below: you'll see the snapping indicator flashing where it has snapped (snapping indicator is also new).

Once again: what version are you using? It's very likely that this won't work in our latest official release, v0.46.

Image

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

Re: STILL confused about snapping

Postby brynn » Wed Jul 09, 2008 11:43 pm

Oh yes, I'm using 0.46.
I somehow did not see your initial reply, Diederik. If I had, I would not have posted mine with all the samples. But in any case, thank you for your comments. And thanks for your work on Inkscape!

SureWhyNot
Posts: 137
Joined: Mon Jun 16, 2008 11:37 pm
Location: United States

Re: STILL confused about snapping

Postby SureWhyNot » Thu Jul 10, 2008 12:25 am

Please fix this function, and make it snappy! ;)

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

Re: STILL confused about snapping

Postby microUgly » Thu Jul 10, 2008 9:14 am

SureWhyNot wrote:Please fix this function, and make it snappy! ;)

Badoom-ching! :D Inkscape releases aren't too frequent so if you really want this now, use a development build.

Some Guy

Re: STILL confused about snapping

Postby Some Guy » Sun Jul 13, 2008 10:29 am

Saw your other thread about this topic and I can think of 1 more step to add.

File -> Document Properties -> Guides -> Check snap guides while dragging
File -> Document Properties -> Snap -> Check enable snapping, nodes, snap to nodes

I was having the same problem. I followed the instructions above and nothing changed. Then I tried 1 more thing and viola! It worked. Try this last step too.

View -> Click on Snap

Good luck to ye.

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

Re: STILL confused about snapping

Postby dvlierop » Sun Jul 13, 2008 4:52 pm

Some Guy wrote:...
File -> Document Properties -> Snap -> Check enable snapping
...
View -> [Click on] Snap


These are one and the same, "View -> Snap", or the %-key, are just shortcuts for the global "enable snapping" toggle in the document properties dialog.

Diederik


Return to “Help with using Inkscape”