diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-04-29 14:51:20 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-04-29 14:51:20 +0400 |
commit | ed4a5739f6f07789cf8a21ec70c298483e61416f (patch) | |
tree | b130361495513fa30da4a6e91bd118291be54b32 /slic3r.pl | |
parent | 222e9df7f92db8fdf67fe30ada836c65ee8528e5 (diff) |
Multiple objects autoplating (--merge, from command line only)
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -26,6 +26,7 @@ my %cli_options = (); 'ignore-nonexistent-config' => \$opt{ignore_nonexistent_config}, 'threads|j=i' => \$Slic3r::threads, 'export-svg' => \$opt{export_svg}, + 'merge' => \$opt{merge}, ); foreach my $opt_key (keys %$Slic3r::Config::Options) { my $opt = $Slic3r::Config::Options->{$opt_key}; @@ -72,9 +73,10 @@ if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") { } if (@ARGV) { - foreach my $input_file ( @ARGV ) { + while (my $input_file = shift @ARGV) { my $skein = Slic3r::Skein->new( input_file => $input_file, + additional_input_files => $opt{merge} ? [ splice @ARGV, 0 ] : [], output_file => $opt{output}, status_cb => sub { my ($percent, $message) = @_; @@ -123,6 +125,8 @@ $j --post-process Generated G-code will be processed with the supplied script; call this more than once to process through multiple scripts. --export-svg Export a SVG file containing slices instead of G-code. + --merge If multiple files are supplied, they will be composed into a single + print rather than processed individually. Printer options: --nozzle-diameter Diameter of nozzle in mm (default: $Slic3r::nozzle_diameter) |