Topic: Slic3r post processing scripts
Now that the Panelolu is up and running, I'm looking at the possibility of adding lines to the gcode that will display text giving print feedback.
Currently, after the initial heating, the message 'Heating Done.' appears and stays on the screen until the print is done. I would love for updates at the start of every layer like 'Printing layer 4 of 50'.
There seems to be two options for this in slic3r.
1. Under Printer Settings/Custom gcode, custom gcode can be placed in the 'Layer change g-code' field. Marlin has support for the M117 command, which outputs fine.
M117 test brings up 'test' on the LCD when the layer changes.
The trouble comes in using variables which would be ideal. It accepts certain variables like [layer_height]:
M117 layer height- [layer_height]
brings up:
'layer height- 0.25'
I've poked around an awful lot in the Slic3r source code and can only get pre-slicing input variables to work, not variables that are being set during the slicing like current layer or total.
Any help here is appreciated.
2. A post-processing script can be run to process g-code, but there is very little documentation for this. The script language is Perl, which doesn't seem to work very nicely with windows. I've installed Strawberry but I'm not sure if some of the test scripts I've found are doing anything or even running.
I prefer not to go down this path but perhaps it's the only way.
Any help or ideas are appreciated.