mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
New option to shift Z coordinates
This commit is contained in:
@@ -29,6 +29,7 @@ use Slic3r::Surface::Collection;
|
||||
our $nozzle_diameter = 0.45;
|
||||
our $print_center = [100,100]; # object will be centered around this point
|
||||
our $use_relative_e_distances = 0;
|
||||
our $z_offset = 0;
|
||||
|
||||
# filament options
|
||||
our $filament_diameter = 3; # mm
|
||||
|
||||
@@ -187,7 +187,7 @@ sub export_gcode {
|
||||
foreach my $layer (@{ $self->layers }) {
|
||||
|
||||
# go to layer
|
||||
printf $fh $extruder->move_z($layer->z * $Slic3r::resolution);
|
||||
printf $fh $extruder->move_z($Slic3r::z_offset + $layer->z * $Slic3r::resolution);
|
||||
|
||||
# extrude skirts
|
||||
printf $fh $extruder->extrude_loop($_, 'skirt') for @{ $layer->skirts };
|
||||
|
||||
Reference in New Issue
Block a user