-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can you center a geometry on the document before writing #175
Comments
I found out how to provide negative values, it is super hacky though. The problem is you need to prevent
|
You put the finger right on vpype's missing piece. First, for translate (standard Unix way to deal with this): Then, a new
If you used the installer, you can download one made from master here: https://github.com/abey79/vpype/suites/1894012677/artifacts/37071956 |
Side note: if you havent already, consider joining the drawingbots discord server. I'm very often online and available for casual help. |
Great, that new branch worked perfectly! Thanks |
Lets assume I have the following svg as input:
https://gist.github.com/64f4bff934c9059e642806bfe625a03e
How can I center the actual geometry on an A4 paper in landscape before using
write
. Reason for not using write is that I actually want to use the output in the vype-gcode plugin.I tried the following:
vpype read LabradorLowPoly.svg pagesize --landscape a4 scaleto 29cm 19cm frame show -g --unit mm
Which leads to:
Not bad, at least the size matches now, but how can I center this on the page?
I checked
translate
but I ran into two issues:a) I don't know how to provide negative offsets
b) I would not know which offsets to provide
What am I missing?
The text was updated successfully, but these errors were encountered: