alexrj/Slic3r — pull request #142 by triffid (2011-12-31 05:57:51+00:00)
Title: post-processing script integration

Hi Sound,

This set of patches allows me to specify post-processing scripts to automatically chain at gcode-write time in my config or on the command line, as well as passing extra options to them as necessary.

post-processing scripts can be written in any language. my code uses globbing to find matching files and barfs if the match isn't specific enough or doesn't match anything.

I've also added a first-layer-temperature script as an example of solving #134.

Test with:
./slic3r.pl --load config.ini --invoke first-layer-temp,z-every --first_layer_temp 205 test.stl

which produces output resembling:
```
Filling layer 99:
Filling layer 100:
Exporting GCODE file...
Post-process: first-layer-temp > z-every-line > 20mm_cube.gcode
Done. Process took 0 minutes and 0.862 seconds
Filament required: 1224.5mm (1.2cm3)
```

As I dynamically add options to Slic3r::Config::Options, --save will save extra options, so this can be totally contained within a user's config.ini.

I haven't even touched a GUI interface for this feature. I suggest a list with checkable items and some way to change execution order. Strip file extensions unless this leaves an ambiguous entry.