A way to make every node snap to grid AFTERWARD ?

Post questions on how to use or achieve an effect in Inkscape.
Gwenouille
Posts: 2
Joined: Wed Jun 08, 2011 6:40 pm

A way to make every node snap to grid AFTERWARD ?

Postby Gwenouille » Sat May 31, 2014 8:27 pm

Hi there,

I would like to know if there is a way to make all nodes of a path fit to a grid ?

I mean, I have complex shapes that i turn to svg, and the result must be expressed with integers.
So I 've created a grid that is 1px wide, and i can correct the position of the handles and points using the snapping options.

But i thought maybe there is a script that could simplify the matter by taking correcting all points so that they fit the grid ?

Or a script that would round all coordinates to integers ? In my case that would be the same result…

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

Re: A way to make every node snap to grid AFTERWARD ?

Postby Lazur » Sat May 31, 2014 8:46 pm

Hi.

There is the pixelsnap extension about to cover this problem, though it seem to work only with one of the coordinates.
At the inkscape preferences (Shift+Ctrl+P) there are some svg-output options that may help? Not sure, I haven't try it for that yet.

Gwenouille
Posts: 2
Joined: Wed Jun 08, 2011 6:40 pm

Re: A way to make every node snap to grid AFTERWARD ?

Postby Gwenouille » Sun Jun 01, 2014 12:28 am

Thanks Lazur URH

I couldn't get Pixelsnap to work on complex shapes: it does a perfect job for rectangular boxes, but does not seem to work on separate points, not to mention handles.

I've had a look in the prefs, and have tried to lower the precision to 1 / -1, but that didn't do anything…
I'll post here if i find something !


Return to “Help with using Inkscape”