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…
A way to make every node snap to grid AFTERWARD ?
-
Gwenouille
- Posts: 2
- Joined: Wed Jun 08, 2011 6:40 pm
Re: A way to make every node snap to grid AFTERWARD ?
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.
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 ?
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 !
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 !