Printing a temperature calibration tower for PETG with Slic3r 1.2.9
https://github.com/slic3r/Slic3r/wiki/Conditional-Gcode-Syntax-Spec doesn't work, but it will interpolate "[variable]" at least.
Go to https://www.thingiverse.com/thing:2729076, get SmartTemperatureTower_PETG_220-265.stl, Slic3r it to 0.2mm layers, and in Printer Settings -> Before layer change G-code, enter this:
; layer=265-5*int(([layer_z]-.35-1.4)/10)
Export G-code. Run this on the file:
perl -lpi -e '($n)=/layer=(.*)/; if ($n) { $_="M104 S".eval($n); }' SmartTemperatureTower_PETG_220-265.gcode
Print that.
comments failed- HTTPConnectionPool(host='bang', port=9031): Max retries exceeded with url: /public/comments (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f29e393a470>: Failed to establish a new connection: [Errno 111] Connection refused',))
(prev/next buttons not implemented; use search)