Slicer Discord
Python script to insert gcode commands before a layer – 3D-Druckmodell von Thingiverse Thingiverse

Python script to insert gcode commands before a layer

von arpruss
8 Downloads
8 Likes
0 Makes
Zum Modell
From time to time I need to insert a pause in gcode to change filament. It's a nuisance to manually edit gcode and have to count layers or search for "g1 z". So I wrote a simple python script to automate this and other similar things (e.g., inserting a temperature change). [Here](https://github.com/arpruss/miscellaneous-scad/blob/master/scripts/insert.py) it is (click on "Raw" to download).

USE AT YOUR OWN RISK.

You should first edit the script to change the parking command for pauses. I set X to -12, which should work for my DaVinci 1.0a (Repetier) printer.

The script is designed for gcode produced by Slic3r and my Repetier-based DaVinci 1.0a. You should examine the output the first few times yourself to make sure that you are happy with it and it works with your slicer/printer and isn't confused by preambles in detecting layers.


Here is how to run it:

python insert.py filename.gcode layerspec layercommands layerspec layercommands ...

The layers must be given i
Quelle
Thingiverse
Was du zum Drucken brauchst: Anfänger Niedrige Konfidenz
Einteilig
Supports 1/3
Zusammenbau 0/3
Einstellungen 1/3
Druckbett 0/3
Nachbearbeitung 0/3
Drucker
FDM / FFF
Dateiformat
STL
Material
TPU
Software
Cura, PrusaSlicer o. Ä.
Gleicher Designer, mehr Plattformen

arpruss veröffentlicht auch auf

5 zusätzliche Modelle auf 1 weiteren Plattformen

Verifiziert durch übereinstimmende Modelltitel über Plattformen hinweg.
Noch keine Bewertungen
Noch keine Kommentare – sei der Erste!

Ähnliche Modelle

6 Vorschläge
Feed Blog Slicer Kostenrechner Bildersuche Einreichen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Zur Sammlung hinzufügen