mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 09:45:54 +08:00
Added toolchange command strip for dual-on-single applications.
This commit is contained in:
parent
3e55603c1a
commit
7e018f1d38
15
utils/post-processing/strip-toolchange.pl
Normal file
15
utils/post-processing/strip-toolchange.pl
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/perl -i
|
||||||
|
#
|
||||||
|
# Remove all toolchange commands (and T# arguments) from gcode.
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
# read stdin and any/all files passed as parameters one line at a time
|
||||||
|
while (<>) {
|
||||||
|
if (not /^T[0-9]/) {
|
||||||
|
s/\s*(T[0-9])//;
|
||||||
|
print;
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user