MakerBot Print is our newest print-prepration software, which supports native CAD files and STL assemblies,
allows you to interact with all your printers via the Cloud, and many other exciting new features.

Download Now


Slic3r PE Profile + Cleanup Script for Geeetech A10M + Dual Color Coin

by redangel1984 Nov 3, 2018
Download All Files

Thing Apps Enabled

Please Login to Comment

It seems that in the new version of Prusa slicer (2.1) a par of things has changed that make the script not work on a dual color print. Error code 1. Does anyone have the same problem?

for those like me with the error : "Post-processing script "C:\Python37\python.exe" "C:\cleanup.py" on file [........].gcode failed.
Error code: 1,

the problem here is the error "Cannot create a file when that file already exists". I then update the file with "infile.close()" and "os.remove(infilename)" before the "os.rename(tmpfilename, outfilename)" (and ofcourse remove the "infile.close()" from the last lite. updated version attached

Heelo, i get an error in Prusa slicer, after exporting the gcode: Faild starting the script, win32 error 193. what does this mean?

on windows, what solve if for me was to set the python path with the scrit on "post-processing script" like this :

C:\Python37\python.exe C:\Python37\cleanup.py;

Keep getting this error on export gcode

The configured post-processing script does not exist: D:\C_2\cleanup.py

hello, did you solve the script problem?

Other than the script, it worked great! Thank you, redangel1984!!!!

When I want to export Gcode i've got this error : the configured post processing script does not exist /Users/User/Desktop/slic3r/cleanup.py;

Could you help me please ?

Running the script creates a second file... part.gcode and part.tmp.gcode Am I correct that I should not use the part.tmp.gcode file? Thanks,

The profile is a really good startpoint and works great with the script.
The endscript has some small errors imo.
As it mostly ends on the purge block, the x-20 y-20 can let it hit the endstops.
The Y200 later to bring the bed to the front, without homing it first can let it run against the front of the printer.
This is are my changes:

; end of g-code
M117 Finished printing. ;Put printing message on LCD screen

M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)

G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle to release some of the pressure
G1 Z5 E-5 F9000 ;move Z up a bit and retract filament even more
G28 X Y ;move X and Y to min endstops so the head is out of the way
G1 Y200 F5000 ;
M84 ;steppers off
G90 ;absolute positioning

Thank you, Dezi, for posting the code correction!