Ghostkeeper/ConvertTo3mf

Support for custom gecode per print z (Applications: M600 filament swap)

Opened this issue · 1 comments

If there is an official way to include filament swap in the 3MF standard , then that should be the way to go.

However in the meantime at least for Prusa Slicer, the way they mark filament swap layer is via a file in ./Metadata/Prusa_Slicer_custom_gcode_per_print_z.xml, for example the content of that file may look like:

<?xml version="1.0" encoding="utf-8"?>
<custom_gcodes_per_print_z>
<code print_z="5.3000001907348633" type="0" extruder="1" color="#6CC52D" extra="" gcode="M600
G1 E0.5 F1500 ; prime after color change"/>
<mode value="SingleExtruder"/>
</custom_gcodes_per_print_z>

What was I am trying to do: I was trying to make a makefile that would generated 3mf files with filament swap at various z height

I am after the same, especially for multipart object that requires different print settings for certain parts. I have not found any way to bake print settings into 3MF expect parse the file via slicer and the modify the 3MF to do something with it.