From 3a6b4f5ecfea8600def2d3515f596e7ea02e2c46 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 8 Dec 2021 17:09:21 +1100 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 88d71af..ec289a8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # laydient Swap filaments throughout am FDM 3D print to create a vertical gradient effect + +## usage +from a command prompt, use ```laydient.py /path/to/source.gcode``` + +Or place ```/path/to/laydient.py``` in the Post-processing scripts section in PrusaSlicer or maybe other slicers + +## how it works +it searches for ```LAYER_CHANGE``` in the input gcode, counts them, then generates a gradient with that number of steps. Then it searches again and inserts toolchanges into the gcode at the appropriate layers. Finally, it outputs the code as ```input-filename_gradient.gcode``` into the source directory.