useful postprocessing scripts for Slic3r for adding wipe towers and other multi-extrusion features. Written in Perl.
In order to get the scripts working properly, I suggest creating print and printer settings in slic3r exclusively for use with those scripts, and modifying these settings as described below.
Copy the scripts to a directory of your choice, note that directory.
Add the full path to the script as noted above in the Print Settings -> Output options -> Post-processing scripts field I suggest only using one post-processing Script at a time.
Tick "Use relative E distances" in Printer Settings -> General
In Printer Settings -> Custom G-Code, add the following to the very beginning of your "Start G-code", your own custom Start G-code can follow after that:
; WIPE TOWER PARAMS
; forceToolChanges=true
; nozzleDiameter=[nozzle_diameter]
; filamentDiameter=[filament_diameter]
; extrusionWidth=[extrusion_width]
; layerHeight=[layer_height]
; firstLayerHeight=[first_layer_height]
; extrusionMultiplier=[extrusion_multiplier]
; firstLayerExtrusionMultiplier=4
; retractionLength=[retract_length]
; toolChangeRetractionLength=[retract_length_toolchange]
; bedWidth=[bed_size_X]
; bedDepth=[bed_size_Y]
; extruders=2
; wipeTowerX=80
; wipeTowerY=155
; wipeTowerW=10
; wipeTowerH=10
; wipeTowerSpacing=20
; wipeTowerLoops=5
; wipeTowerBrimLoops=7
; wipeOffset=2
; purgeOffset=1.33
; wipeLift=5
; travelLift=1
; purgeAmount=0.5
; retractionFeedrate=[retract_speed]
; travelFeedrate=[travel_speed]
; printFeedrate=[perimeter_speed]
; extrusionFeedrate=25
Also, add the following line to the very beginning of your "End G-Code", your own custom End G-Code can follow
; end of g-code
The "After layer change G-code" should consist of exactly that line:
; next layer
The "Tool change G-code" should consist of exactly that line:
; tool change
I've never written a line of Perl before this project. I'm still learning, but also had to make this work. Any suggestions are heavily welcome. All scripts in this repository are licensed under the GPLv3 with me, Moritz Walter, as the author.