diff --git a/README.markdown b/README.markdown index 9cfc06161..da681c6d8 100644 --- a/README.markdown +++ b/README.markdown @@ -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 diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index 1735eca70..319bb3645 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -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 diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index bfc9fcc11..99a937ef4 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -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; diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 0ffe8ece6..573c46029 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -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', diff --git a/slic3r.pl b/slic3r.pl index 0dd0a3917..10e8f1ec8 100755 --- a/slic3r.pl +++ b/slic3r.pl @@ -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)