A collection of G-code postprocessing tools. Mostly for 3D-Printing.
This software is in an early development stage. Things might break.
gct.py [-o FILE_OUT] COMMAND ... FILE_IN
If no FILE_OUT is given, output is written to stdout.
Commands may have command-specific parameters.
Check gct.py -h for more information.
Removes all comments from a gcode file. This is a minimal parser for development, but may be useful on its own.
gct.py strip FILE_IN
Changes the amount of extrusion depending on the distance to the closest perimeter. This functionality was adapted from GradientInfill by CNC Kitchen. Many thanks to Stefan for his great work!
gct.py gradient_infill [--flow_min FLOW_MIN] [--flow_max FLOW_MAX] [--width WIDTH] FILE_IN
Check gct.py gradient_infill -h for more information.
- Currently
gradient_infillprobably only works with gcode created by PrusaSlicer. - Currently only works with infill consisting of small line segments.
Print Settings -> Output options -> Verbose G-codemust be enabled.Printer Settings -> General -> Use relative E distancesmust be enabled.- On printers with bowden extruder, reduce the speed for the infill.
Released under the MIT License.