Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active August 29, 2021 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/a7a7030d04761897d18cf3148d914b36 to your computer and use it in GitHub Desktop.
Save keijiro/a7a7030d04761897d18cf3148d914b36 to your computer and use it in GitHub Desktop.
My Unity-Axidraw workflow

The following is my plotter art workflow with Unity.

  1. On Unity, render a monochrome line-art image using the Recolor (contour line) effect. The resolution of the image should be high enough. I usually use 2400x3840.

  2. Rotate it if needed. convert temp.png -rotate 90 render.png

  3. Convert it into SVG using autotrace. autotrace --centerline --output-format=svg render.png > plot.svg

  4. Edit the SVG file to change the resolution to 480x300.

  5. Edit the SVG file to add a scaling group. <g transform="scale(0.125)">...</g>.

  6. Plot the SVG file. axicli plot.svg -G 3

The official version of autotrace doesn't work for me (it emits segfaults with png files). I used hanmertens' fork insterad.

Memo: To toggle the pen position, use axicli -m toggle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment