Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-12-26 20:20:26 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-12-26 20:25:13 +0400
commitf9446b9c6e7b9269b7bebc5af79b1b732387f16f (patch)
tree251a781d50d11bc644258494de9e6d57b71c6860 /README.markdown
parent1071b556cba3ae7861fac31847060325bef7070f (diff)
Cleanup the --output-filename-format implementation. #53 #137
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown36
1 files changed, 28 insertions, 8 deletions
diff --git a/README.markdown b/README.markdown
index 2d9fb5bce..ba9b41347 100644
--- a/README.markdown
+++ b/README.markdown
@@ -81,13 +81,15 @@ The author is Alessandro Ranellucci (me).
--help Output this usage screen and exit
--save <file> Save configuration to the specified file
--load <file> Load configuration from the specified file
- -o <filename> File name to output gcode to (default: --output)
-
+ -o, --output <file> File to output gcode to (by default, the file will be saved
+ into the same directory as the input file using the
+ --output-filename-format to generate the filename)
+
Output options:
- --output Output file name format (default: [input_filename_base].gcode)
- examples:
- [input_filename_base]_h[layer_height]_p[perimeters]_s[solid_layers].gcode
- [input_filename]_center[print_center]_layer[layer_height].gcode
+ --output-filament-format
+ Output file name format; all config options enclosed in brackets
+ will be replaced by their values, as well as [input_filename_base]
+ and [input_filename] (default: [input_filename_base].gcode)
Printer options:
--nozzle-diameter Diameter of nozzle in mm (default: 0.5)
@@ -160,10 +162,10 @@ The author is Alessandro Ranellucci (me).
--retract-lift Lift Z by the given distance in mm when retracting (default: 0)
Skirt options:
- --skirts Number of skirts to draw (default: 1)
+ --skirts Number of skirts to draw (0+, default: 1)
--skirt-distance Distance in mm between innermost skirt and object
(default: 6)
- --skirt-height Height of skirts to draw (expressed in layers, default: 1)
+ --skirt-height Height of skirts to draw (expressed in layers, 0+, default: 1)
Transform options:
--scale Factor for scaling input object (default: 1)
@@ -202,3 +204,21 @@ you like).
On Mac, the executable has a path like this:
/Applications/Slic3r.app/Contents/MacOS/slic3r
+
+## How can I specify a custom filename format for output G-code files?
+
+You can specify a filename format by using any of the config options.
+Just enclose them in square brackets, and Slic3r will replace them upon
+exporting.
+The additional `[input_filename]` and `[input_filename_base]` options will
+be replaced by the input file name (in the second case, the .stl extension
+is stripped).
+
+The default format is `[input_filename_base].gcode`, meaning that if you slice
+a *foo.stl* file, the output will be saved to *foo.gcode*.
+
+See below for more complex examples:
+
+ [input_filename_base]_h[layer_height]_p[perimeters]_s[solid_layers].gcode
+ [input_filename]_center[print_center]_[layer_height]layers.gcode
+