slic3r.pl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. #!/usr/bin/env perl
  2. use strict;
  3. use warnings;
  4. BEGIN {
  5. use FindBin;
  6. use lib "$FindBin::Bin/lib";
  7. }
  8. use File::Basename qw(basename);
  9. use Getopt::Long qw(:config no_auto_abbrev);
  10. use List::Util qw(first);
  11. use POSIX qw(setlocale LC_NUMERIC);
  12. use Slic3r;
  13. use Time::HiRes qw(gettimeofday tv_interval);
  14. $|++;
  15. our %opt = ();
  16. my %cli_options = ();
  17. {
  18. my %options = (
  19. 'help' => sub { usage() },
  20. 'version' => sub { print "$Slic3r::VERSION\n"; exit 0 },
  21. 'debug' => \$Slic3r::debug,
  22. 'gui' => \$opt{gui},
  23. 'o|output=s' => \$opt{output},
  24. 'save=s' => \$opt{save},
  25. 'load=s@' => \$opt{load},
  26. 'autosave=s' => \$opt{autosave},
  27. 'ignore-nonexistent-config' => \$opt{ignore_nonexistent_config},
  28. 'no-plater' => \$opt{no_plater},
  29. 'gui-mode=s' => \$opt{gui_mode},
  30. 'datadir=s' => \$opt{datadir},
  31. 'export-svg' => \$opt{export_svg},
  32. 'merge|m' => \$opt{merge},
  33. 'repair' => \$opt{repair},
  34. 'cut=f' => \$opt{cut},
  35. 'split' => \$opt{split},
  36. 'info' => \$opt{info},
  37. 'scale=f' => \$opt{scale},
  38. 'rotate=i' => \$opt{rotate},
  39. 'duplicate=i' => \$opt{duplicate},
  40. 'duplicate-grid=s' => \$opt{duplicate_grid},
  41. 'print-center=s' => \$opt{print_center},
  42. );
  43. foreach my $opt_key (keys %{$Slic3r::Config::Options}) {
  44. my $cli = $Slic3r::Config::Options->{$opt_key}->{cli} or next;
  45. # allow both the dash-separated option name and the full opt_key
  46. $options{ "$opt_key|$cli" } = \$cli_options{$opt_key};
  47. }
  48. GetOptions(%options) or usage(1);
  49. }
  50. # load configuration files
  51. my @external_configs = ();
  52. if ($opt{load}) {
  53. foreach my $configfile (@{$opt{load}}) {
  54. $configfile = Slic3r::decode_path($configfile);
  55. if (-e $configfile) {
  56. push @external_configs, Slic3r::Config->load($configfile);
  57. } elsif (-e "$FindBin::Bin/$configfile") {
  58. printf STDERR "Loading $FindBin::Bin/$configfile\n";
  59. push @external_configs, Slic3r::Config->load("$FindBin::Bin/$configfile");
  60. } else {
  61. $opt{ignore_nonexistent_config} or die "Cannot find specified configuration file ($configfile).\n";
  62. }
  63. }
  64. }
  65. # process command line options
  66. my $cli_config = Slic3r::Config->new;
  67. foreach my $c (@external_configs, Slic3r::Config->new_from_cli(%cli_options)) {
  68. $c->normalize; # expand shortcuts before applying, otherwise destination values would be already filled with defaults
  69. $cli_config->apply($c);
  70. }
  71. # save configuration
  72. if ($opt{save}) {
  73. $cli_config->save($opt{save});
  74. }
  75. # apply command line config on top of default config
  76. my $config = Slic3r::Config->new_from_defaults;
  77. $config->apply($cli_config);
  78. # launch GUI
  79. my $gui;
  80. if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") {
  81. {
  82. no warnings 'once';
  83. $Slic3r::GUI::datadir = Slic3r::decode_path($opt{datadir});
  84. $Slic3r::GUI::no_plater = $opt{no_plater};
  85. $Slic3r::GUI::mode = $opt{gui_mode};
  86. $Slic3r::GUI::autosave = $opt{autosave};
  87. }
  88. $gui = Slic3r::GUI->new;
  89. setlocale(LC_NUMERIC, 'C');
  90. $gui->{mainframe}->load_config_file($_) for @{$opt{load}};
  91. $gui->{mainframe}->load_config($cli_config);
  92. $gui->MainLoop;
  93. exit;
  94. }
  95. die $@ if $@ && $opt{gui};
  96. if (@ARGV) { # slicing from command line
  97. $config->validate;
  98. if ($opt{repair}) {
  99. foreach my $file (@ARGV) {
  100. $file = Slic3r::decode_path($file);
  101. die "Repair is currently supported only on STL files\n"
  102. if $file !~ /\.stl$/i;
  103. my $output_file = $file;
  104. $output_file =~ s/\.(stl)$/_fixed.obj/i;
  105. my $tmesh = Slic3r::TriangleMesh->new;
  106. $tmesh->ReadSTLFile($file);
  107. $tmesh->repair;
  108. $tmesh->WriteOBJFile($output_file);
  109. }
  110. exit;
  111. }
  112. if ($opt{cut}) {
  113. foreach my $file (@ARGV) {
  114. $file = Slic3r::decode_path($file);
  115. my $model = Slic3r::Model->read_from_file($file);
  116. $model->add_default_instances;
  117. my $mesh = $model->mesh;
  118. $mesh->translate(0, 0, -$mesh->bounding_box->z_min);
  119. my $upper = Slic3r::TriangleMesh->new;
  120. my $lower = Slic3r::TriangleMesh->new;
  121. $mesh->cut($opt{cut}, $upper, $lower);
  122. $upper->repair;
  123. $lower->repair;
  124. $upper->write_ascii("${file}_upper.stl")
  125. if $upper->facets_count > 0;
  126. $lower->write_ascii("${file}_lower.stl")
  127. if $lower->facets_count > 0;
  128. }
  129. exit;
  130. }
  131. if ($opt{split}) {
  132. foreach my $file (@ARGV) {
  133. $file = Slic3r::decode_path($file);
  134. my $model = Slic3r::Model->read_from_file($file);
  135. $model->add_default_instances;
  136. my $mesh = $model->mesh;
  137. $mesh->repair;
  138. my $part_count = 0;
  139. foreach my $new_mesh (@{$mesh->split}) {
  140. my $output_file = sprintf '%s_%02d.stl', $file, ++$part_count;
  141. printf "Writing to %s\n", basename($output_file);
  142. Slic3r::Format::STL->write_file($output_file, $new_mesh, binary => 1);
  143. }
  144. }
  145. exit;
  146. }
  147. while (my $input_file = shift @ARGV) {
  148. $input_file = Slic3r::decode_path($input_file);
  149. my $model;
  150. if ($opt{merge}) {
  151. my @models = map Slic3r::Model->read_from_file($_), $input_file, (splice @ARGV, 0);
  152. $model = Slic3r::Model->merge(@models);
  153. } else {
  154. $model = Slic3r::Model->read_from_file($input_file);
  155. }
  156. if ($opt{info}) {
  157. $model->print_info;
  158. next;
  159. }
  160. if (defined $opt{duplicate_grid}) {
  161. $opt{duplicate_grid} = [ split /[,x]/, $opt{duplicate_grid}, 2 ];
  162. }
  163. if (defined $opt{print_center}) {
  164. $opt{print_center} = Slic3r::Pointf->new(split /[,x]/, $opt{print_center}, 2);
  165. }
  166. my $sprint = Slic3r::Print::Simple->new(
  167. scale => $opt{scale} // 1,
  168. rotate => $opt{rotate} // 0,
  169. duplicate => $opt{duplicate} // 1,
  170. duplicate_grid => $opt{duplicate_grid} // [1,1],
  171. print_center => $opt{print_center} // Slic3r::Pointf->new(100,100),
  172. status_cb => sub {
  173. my ($percent, $message) = @_;
  174. printf "=> %s\n", $message;
  175. },
  176. output_file => $opt{output},
  177. );
  178. $sprint->apply_config($config);
  179. $sprint->set_model($model);
  180. if ($opt{export_svg}) {
  181. $sprint->export_svg;
  182. } else {
  183. my $t0 = [gettimeofday];
  184. $sprint->export_gcode;
  185. # output some statistics
  186. {
  187. my $duration = tv_interval($t0);
  188. printf "Done. Process took %d minutes and %.3f seconds\n",
  189. int($duration/60), ($duration - int($duration/60)*60); # % truncates to integer
  190. }
  191. printf "Filament required: %.1fmm (%.1fcm3)\n",
  192. $sprint->total_used_filament, $sprint->total_extruded_volume/1000;
  193. }
  194. }
  195. } else {
  196. usage(1) unless $opt{save};
  197. }
  198. sub usage {
  199. my ($exit_code) = @_;
  200. my $config = Slic3r::Config->new_from_defaults->as_hash;
  201. my $j = '';
  202. if ($Slic3r::have_threads) {
  203. $j = <<"EOF";
  204. -j, --threads <num> Number of threads to use (1+, default: $config->{threads})
  205. EOF
  206. }
  207. print <<"EOF";
  208. Slic3r $Slic3r::VERSION is a STL-to-GCODE translator for RepRap 3D printers
  209. written by Alessandro Ranellucci <aar\@cpan.org> - http://slic3r.org/
  210. Usage: slic3r.pl [ OPTIONS ] [ file.stl ] [ file2.stl ] ...
  211. --help Output this usage screen and exit
  212. --version Output the version of Slic3r and exit
  213. --save <file> Save configuration to the specified file
  214. --load <file> Load configuration from the specified file. It can be used
  215. more than once to load options from multiple files.
  216. -o, --output <file> File to output gcode to (by default, the file will be saved
  217. into the same directory as the input file using the
  218. --output-filename-format to generate the filename.) If a
  219. directory is specified for this option, the output will
  220. be saved under that directory, and the filename will be
  221. generated by --output-filename-format.
  222. Non-slicing actions (no G-code will be generated):
  223. --repair Repair given STL files and save them as <name>_fixed.obj
  224. --cut <z> Cut given input files at given Z (relative) and export
  225. them as <name>_upper.stl and <name>_lower.stl
  226. --split Split the shells contained in given STL file into several STL files
  227. --info Output information about the supplied file(s) and exit
  228. $j
  229. GUI options:
  230. --no-plater Disable the plater tab
  231. --gui-mode Overrides the configured mode (simple/expert)
  232. --autosave <file> Automatically export current configuration to the specified file
  233. Output options:
  234. --output-filename-format
  235. Output file name format; all config options enclosed in brackets
  236. will be replaced by their values, as well as [input_filename_base]
  237. and [input_filename] (default: $config->{output_filename_format})
  238. --post-process Generated G-code will be processed with the supplied script;
  239. call this more than once to process through multiple scripts.
  240. --export-svg Export a SVG file containing slices instead of G-code.
  241. -m, --merge If multiple files are supplied, they will be composed into a single
  242. print rather than processed individually.
  243. Printer options:
  244. --nozzle-diameter Diameter of nozzle in mm (default: $config->{nozzle_diameter}->[0])
  245. --print-center Coordinates in mm of the point to center the print around
  246. (default: 100,100)
  247. --z-offset Additional height in mm to add to vertical coordinates
  248. (+/-, default: $config->{z_offset})
  249. --gcode-flavor The type of G-code to generate (reprap/teacup/makerware/sailfish/mach3/no-extrusion,
  250. default: $config->{gcode_flavor})
  251. --use-relative-e-distances Enable this to get relative E values (default: no)
  252. --use-firmware-retraction Enable firmware-controlled retraction using G10/G11 (default: no)
  253. --gcode-arcs Use G2/G3 commands for native arcs (experimental, not supported
  254. by all firmwares)
  255. --gcode-comments Make G-code verbose by adding comments (default: no)
  256. --vibration-limit Limit the frequency of moves on X and Y axes (Hz, set zero to disable;
  257. default: $config->{vibration_limit})
  258. --pressure-advance Adjust pressure using the experimental advance algorithm (K constant,
  259. set zero to disable; default: $config->{pressure_advance})
  260. Filament options:
  261. --filament-diameter Diameter in mm of your raw filament (default: $config->{filament_diameter}->[0])
  262. --extrusion-multiplier
  263. Change this to alter the amount of plastic extruded. There should be
  264. very little need to change this value, which is only useful to
  265. compensate for filament packing (default: $config->{extrusion_multiplier}->[0])
  266. --temperature Extrusion temperature in degree Celsius, set 0 to disable (default: $config->{temperature}->[0])
  267. --first-layer-temperature Extrusion temperature for the first layer, in degree Celsius,
  268. set 0 to disable (default: same as --temperature)
  269. --bed-temperature Heated bed temperature in degree Celsius, set 0 to disable (default: $config->{bed_temperature})
  270. --first-layer-bed-temperature Heated bed temperature for the first layer, in degree Celsius,
  271. set 0 to disable (default: same as --bed-temperature)
  272. Speed options:
  273. --travel-speed Speed of non-print moves in mm/s (default: $config->{travel_speed})
  274. --perimeter-speed Speed of print moves for perimeters in mm/s (default: $config->{perimeter_speed})
  275. --small-perimeter-speed
  276. Speed of print moves for small perimeters in mm/s or % over perimeter speed
  277. (default: $config->{small_perimeter_speed})
  278. --external-perimeter-speed
  279. Speed of print moves for the external perimeter in mm/s or % over perimeter speed
  280. (default: $config->{external_perimeter_speed})
  281. --infill-speed Speed of print moves in mm/s (default: $config->{infill_speed})
  282. --solid-infill-speed Speed of print moves for solid surfaces in mm/s or % over infill speed
  283. (default: $config->{solid_infill_speed})
  284. --top-solid-infill-speed Speed of print moves for top surfaces in mm/s or % over solid infill speed
  285. (default: $config->{top_solid_infill_speed})
  286. --support-material-speed
  287. Speed of support material print moves in mm/s (default: $config->{support_material_speed})
  288. --support-material-interface-speed
  289. Speed of support material interface print moves in mm/s or % over support material
  290. speed (default: $config->{support_material_interface_speed})
  291. --bridge-speed Speed of bridge print moves in mm/s (default: $config->{bridge_speed})
  292. --gap-fill-speed Speed of gap fill print moves in mm/s (default: $config->{gap_fill_speed})
  293. --first-layer-speed Speed of print moves for bottom layer, expressed either as an absolute
  294. value or as a percentage over normal speeds (default: $config->{first_layer_speed})
  295. Acceleration options:
  296. --perimeter-acceleration
  297. Overrides firmware's default acceleration for perimeters. (mm/s^2, set zero
  298. to disable; default: $config->{perimeter_acceleration})
  299. --infill-acceleration
  300. Overrides firmware's default acceleration for infill. (mm/s^2, set zero
  301. to disable; default: $config->{infill_acceleration})
  302. --bridge-acceleration
  303. Overrides firmware's default acceleration for bridges. (mm/s^2, set zero
  304. to disable; default: $config->{bridge_acceleration})
  305. --first-layer-acceleration
  306. Overrides firmware's default acceleration for first layer. (mm/s^2, set zero
  307. to disable; default: $config->{first_layer_acceleration})
  308. --default-acceleration
  309. Acceleration will be reset to this value after the specific settings above
  310. have been applied. (mm/s^2, set zero to disable; default: $config->{default_acceleration})
  311. Accuracy options:
  312. --layer-height Layer height in mm (default: $config->{layer_height})
  313. --first-layer-height Layer height for first layer (mm or %, default: $config->{first_layer_height})
  314. --infill-every-layers
  315. Infill every N layers (default: $config->{infill_every_layers})
  316. --solid-infill-every-layers
  317. Force a solid layer every N layers (default: $config->{solid_infill_every_layers})
  318. Print options:
  319. --perimeters Number of perimeters/horizontal skins (range: 0+, default: $config->{perimeters})
  320. --top-solid-layers Number of solid layers to do for top surfaces (range: 0+, default: $config->{top_solid_layers})
  321. --bottom-solid-layers Number of solid layers to do for bottom surfaces (range: 0+, default: $config->{bottom_solid_layers})
  322. --solid-layers Shortcut for setting the two options above at once
  323. --fill-density Infill density (range: 0%-100%, default: $config->{fill_density}%)
  324. --fill-angle Infill angle in degrees (range: 0-90, default: $config->{fill_angle})
  325. --fill-pattern Pattern to use to fill non-solid layers (default: $config->{fill_pattern})
  326. --external-fill-pattern Pattern to use to fill solid layers (default: $config->{external_fill_pattern})
  327. --start-gcode Load initial G-code from the supplied file. This will overwrite
  328. the default command (home all axes [G28]).
  329. --end-gcode Load final G-code from the supplied file. This will overwrite
  330. the default commands (turn off temperature [M104 S0],
  331. home X axis [G28 X], disable motors [M84]).
  332. --layer-gcode Load layer-change G-code from the supplied file (default: nothing).
  333. --toolchange-gcode Load tool-change G-code from the supplied file (default: nothing).
  334. --seam-position Position of loop starting points (random/nearest/aligned, default: $config->{seam_position}).
  335. --external-perimeters-first Reverse perimeter order. (default: no)
  336. --spiral-vase Experimental option to raise Z gradually when printing single-walled vases
  337. (default: no)
  338. --only-retract-when-crossing-perimeters
  339. Disable retraction when travelling between infill paths inside the same island.
  340. (default: no)
  341. --solid-infill-below-area
  342. Force solid infill when a region has a smaller area than this threshold
  343. (mm^2, default: $config->{solid_infill_below_area})
  344. --infill-only-where-needed
  345. Only infill under ceilings (default: no)
  346. --infill-first Make infill before perimeters (default: no)
  347. Quality options (slower slicing):
  348. --extra-perimeters Add more perimeters when needed (default: yes)
  349. --avoid-crossing-perimeters Optimize travel moves so that no perimeters are crossed (default: no)
  350. --thin-walls Detect single-width walls (default: yes)
  351. --overhangs Experimental option to use bridge flow, speed and fan for overhangs
  352. (default: yes)
  353. Support material options:
  354. --support-material Generate support material for overhangs
  355. --support-material-threshold
  356. Overhang threshold angle (range: 0-90, set 0 for automatic detection,
  357. default: $config->{support_material_threshold})
  358. --support-material-pattern
  359. Pattern to use for support material (default: $config->{support_material_pattern})
  360. --support-material-spacing
  361. Spacing between pattern lines (mm, default: $config->{support_material_spacing})
  362. --support-material-angle
  363. Support material angle in degrees (range: 0-90, default: $config->{support_material_angle})
  364. --support-material-interface-layers
  365. Number of perpendicular layers between support material and object (0+, default: $config->{support_material_interface_layers})
  366. --support-material-interface-spacing
  367. Spacing between interface pattern lines (mm, set 0 to get a solid layer, default: $config->{support_material_interface_spacing})
  368. --raft-layers Number of layers to raise the printed objects by (range: 0+, default: $config->{raft_layers})
  369. --support-material-enforce-layers
  370. Enforce support material on the specified number of layers from bottom,
  371. regardless of --support-material and threshold (0+, default: $config->{support_material_enforce_layers})
  372. --dont-support-bridges
  373. Experimental option for preventing support material from being generated under bridged areas (default: yes)
  374. Retraction options:
  375. --retract-length Length of retraction in mm when pausing extrusion (default: $config->{retract_length}[0])
  376. --retract-speed Speed for retraction in mm/s (default: $config->{retract_speed}[0])
  377. --retract-restart-extra
  378. Additional amount of filament in mm to push after
  379. compensating retraction (default: $config->{retract_restart_extra}[0])
  380. --retract-before-travel
  381. Only retract before travel moves of this length in mm (default: $config->{retract_before_travel}[0])
  382. --retract-lift Lift Z by the given distance in mm when retracting (default: $config->{retract_lift}[0])
  383. --retract-layer-change
  384. Enforce a retraction before each Z move (default: yes)
  385. --wipe Wipe the nozzle while doing a retraction (default: no)
  386. Retraction options for multi-extruder setups:
  387. --retract-length-toolchange
  388. Length of retraction in mm when disabling tool (default: $config->{retract_length}[0])
  389. --retract-restart-extra-toolchnage
  390. Additional amount of filament in mm to push after
  391. switching tool (default: $config->{retract_restart_extra}[0])
  392. Cooling options:
  393. --cooling Enable fan and cooling control
  394. --min-fan-speed Minimum fan speed (default: $config->{min_fan_speed}%)
  395. --max-fan-speed Maximum fan speed (default: $config->{max_fan_speed}%)
  396. --bridge-fan-speed Fan speed to use when bridging (default: $config->{bridge_fan_speed}%)
  397. --fan-below-layer-time Enable fan if layer print time is below this approximate number
  398. of seconds (default: $config->{fan_below_layer_time})
  399. --slowdown-below-layer-time Slow down if layer print time is below this approximate number
  400. of seconds (default: $config->{slowdown_below_layer_time})
  401. --min-print-speed Minimum print speed (mm/s, default: $config->{min_print_speed})
  402. --disable-fan-first-layers Disable fan for the first N layers (default: $config->{disable_fan_first_layers})
  403. --fan-always-on Keep fan always on at min fan speed, even for layers that don't need
  404. cooling
  405. Skirt options:
  406. --skirts Number of skirts to draw (0+, default: $config->{skirts})
  407. --skirt-distance Distance in mm between innermost skirt and object
  408. (default: $config->{skirt_distance})
  409. --skirt-height Height of skirts to draw (expressed in layers, 0+, default: $config->{skirt_height})
  410. --min-skirt-length Generate no less than the number of loops required to consume this length
  411. of filament on the first layer, for each extruder (mm, 0+, default: $config->{min_skirt_length})
  412. --brim-width Width of the brim that will get added to each object to help adhesion
  413. (mm, default: $config->{brim_width})
  414. Transform options:
  415. --scale Factor for scaling input object (default: 1)
  416. --rotate Rotation angle in degrees (0-360, default: 0)
  417. --duplicate Number of items with auto-arrange (1+, default: 1)
  418. --duplicate-grid Number of items with grid arrangement (default: 1,1)
  419. --duplicate-distance Distance in mm between copies (default: $config->{duplicate_distance})
  420. --xy-size-compensation
  421. Grow/shrink objects by the configured absolute distance (mm, default: $config->{xy_size_compensation})
  422. Sequential printing options:
  423. --complete-objects When printing multiple objects and/or copies, complete each one before
  424. starting the next one; watch out for extruder collisions (default: no)
  425. --extruder-clearance-radius Radius in mm above which extruder won't collide with anything
  426. (default: $config->{extruder_clearance_radius})
  427. --extruder-clearance-height Maximum vertical extruder depth; i.e. vertical distance from
  428. extruder tip and carriage bottom (default: $config->{extruder_clearance_height})
  429. Miscellaneous options:
  430. --notes Notes to be added as comments to the output file
  431. --resolution Minimum detail resolution (mm, set zero for full resolution, default: $config->{resolution})
  432. Flow options (advanced):
  433. --extrusion-width Set extrusion width manually; it accepts either an absolute value in mm
  434. (like 0.65) or a percentage over layer height (like 200%)
  435. --first-layer-extrusion-width
  436. Set a different extrusion width for first layer
  437. --perimeter-extrusion-width
  438. Set a different extrusion width for perimeters
  439. --external-perimeter-extrusion-width
  440. Set a different extrusion width for external perimeters
  441. --infill-extrusion-width
  442. Set a different extrusion width for infill
  443. --solid-infill-extrusion-width
  444. Set a different extrusion width for solid infill
  445. --top-infill-extrusion-width
  446. Set a different extrusion width for top infill
  447. --support-material-extrusion-width
  448. Set a different extrusion width for support material
  449. --bridge-flow-ratio Multiplier for extrusion when bridging (> 0, default: $config->{bridge_flow_ratio})
  450. Multiple extruder options:
  451. --extruder-offset Offset of each extruder, if firmware doesn't handle the displacement
  452. (can be specified multiple times, default: 0x0)
  453. --perimeter-extruder
  454. Extruder to use for perimeters (1+, default: $config->{perimeter_extruder})
  455. --infill-extruder Extruder to use for infill (1+, default: $config->{infill_extruder})
  456. --support-material-extruder
  457. Extruder to use for support material (1+, default: $config->{support_material_extruder})
  458. --support-material-interface-extruder
  459. Extruder to use for support material interface (1+, default: $config->{support_material_interface_extruder})
  460. --ooze-prevention Drop temperature and park extruders outside a full skirt for automatic wiping
  461. (default: no)
  462. --standby-temperature-delta
  463. Temperature difference to be applied when an extruder is not active and
  464. --ooze-prevention is enabled (default: $config->{standby_temperature_delta})
  465. EOF
  466. exit ($exit_code || 0);
  467. }
  468. __END__