Refactoring and integrations to the bed temperature handling
This commit is contained in:
parent
35e7877437
commit
7892a84408
@ -118,6 +118,9 @@ The author is Alessandro Ranellucci (me).
|
||||
--temperature Extrusion temperature in degree Celsius, set 0 to disable (default: 200)
|
||||
--first-layer-temperature Extrusion temperature for the first layer, in degree Celsius,
|
||||
set 0 to disable (default: same as --temperature)
|
||||
--bed-temperature Heated bed temperature in degree Celsius, set 0 to disable (default: 200)
|
||||
--first-layer-bed-temperature Heated bed temperature for the first layer, in degree Celsius,
|
||||
set 0 to disable (default: same as --bed-temperature)
|
||||
|
||||
Speed options:
|
||||
--travel-speed Speed of non-print moves in mm/s (default: 130)
|
||||
@ -201,6 +204,8 @@ The author is Alessandro Ranellucci (me).
|
||||
Calculate the extrusion width as the layer height multiplied by
|
||||
this value (> 0, default: calculated automatically)
|
||||
--bridge-flow-ratio Multiplier for extrusion when bridging (> 0, default: 1)
|
||||
|
||||
|
||||
|
||||
If you want to change a preset file, just do
|
||||
|
||||
|
@ -62,6 +62,8 @@ our $filament_diameter = 3; # mm
|
||||
our $extrusion_multiplier = 1;
|
||||
our $temperature = 200;
|
||||
our $first_layer_temperature;
|
||||
our $bed_temperature = 0;
|
||||
our $first_layer_bed_temperature;
|
||||
|
||||
# speed options
|
||||
our $travel_speed = 130; # mm/s
|
||||
|
@ -111,7 +111,6 @@ our $Options = {
|
||||
label => 'Bed Temperature (°C)',
|
||||
cli => 'bed-temperature=i',
|
||||
type => 'i',
|
||||
important => 1,
|
||||
},
|
||||
|
||||
# speed options
|
||||
@ -608,11 +607,8 @@ sub validate {
|
||||
die "Invalid value for --bridge-flow-ratio\n"
|
||||
if $Slic3r::bridge_flow_ratio <= 0;
|
||||
|
||||
# --first_layer_temperature
|
||||
$Slic3r::first_layer_temperature = $Slic3r::temperature unless $Slic3r::first_layer_temperature;
|
||||
|
||||
# --first-layer-bed-temperature
|
||||
$Slic3r::first_layer_bed_temperature = $Slic3r::bed_temperature unless $Slic3r::first_layer_bed_temperature;
|
||||
$Slic3r::first_layer_temperature //= $Slic3r::temperature; #/
|
||||
$Slic3r::first_layer_bed_temperature //= $Slic3r::bed_temperature; #/
|
||||
|
||||
# G-code flavors
|
||||
$Slic3r::extrusion_axis = 'A' if $Slic3r::gcode_flavor eq 'mach3';
|
||||
@ -621,7 +617,6 @@ sub validate {
|
||||
$Slic3r::small_perimeter_speed ||= $Slic3r::perimeter_speed;
|
||||
$Slic3r::bridge_speed ||= $Slic3r::infill_speed;
|
||||
$Slic3r::solid_infill_speed ||= $Slic3r::infill_speed;
|
||||
$Slic3r::first_layer_temperature //= $Slic3r::temperature; #/
|
||||
}
|
||||
|
||||
1;
|
||||
|
@ -25,7 +25,7 @@ sub new {
|
||||
},
|
||||
filament => {
|
||||
title => 'Filament',
|
||||
options => [qw(filament_diameter extrusion_multiplier temperature first_layer_temperature)],
|
||||
options => [qw(filament_diameter extrusion_multiplier temperature first_layer_temperature bed_temperature first_layer_bed_temperature)],
|
||||
},
|
||||
print_speed => {
|
||||
title => 'Print speed',
|
||||
|
@ -136,6 +136,9 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
|
||||
--temperature Extrusion temperature in degree Celsius, set 0 to disable (default: $Slic3r::temperature)
|
||||
--first-layer-temperature Extrusion temperature for the first layer, in degree Celsius,
|
||||
set 0 to disable (default: same as --temperature)
|
||||
--bed-temperature Heated bed temperature in degree Celsius, set 0 to disable (default: $Slic3r::temperature)
|
||||
--first-layer-bed-temperature Heated bed temperature for the first layer, in degree Celsius,
|
||||
set 0 to disable (default: same as --bed-temperature)
|
||||
|
||||
Speed options:
|
||||
--travel-speed Speed of non-print moves in mm/s (default: $Slic3r::travel_speed)
|
||||
|
Loading…
Reference in New Issue
Block a user