Skip to content

Instantly share code, notes, and snippets.

@machinekoder
Created April 19, 2014 07:05
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 machinekoder/11076499 to your computer and use it in GitHub Desktop.
Save machinekoder/11076499 to your computer and use it in GitHub Desktop.
Post processing script for Slic3r to work with Machinekit
#!/bin/sh
# convert all E to A axis
sed '/^G/s/ E/ A/' "$1" > "$1post"
rm "$1"
# convert all M106 to B axis
sed '/^M106/s/M106 P/G0 B/' "$1post" > "$1"
rm "$1post"
#convert g1 line segments to g2 or g3 if possible
./g1tog23.py $1
rm $1.bak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment