mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Implement GCodeGzWriter
This plug-in outputs g-code to a gzipped archive. It is used for sending prints to the Ultimaker 3 family faster. Contributes to issue CURA-5097.
This commit is contained in:
parent
5a5766f11a
commit
c1ea1320f0
3 changed files with 71 additions and 0 deletions
22
plugins/GCodeGzWriter/__init__.py
Normal file
22
plugins/GCodeGzWriter/__init__.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from . import GCodeGzWriter
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"mesh_writer": {
|
||||
"output": [{
|
||||
"extension": "gcode.gz",
|
||||
"description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
|
||||
"mime_type": "application/gzip",
|
||||
"mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
def register(app):
|
||||
return { "mesh_writer": GCodeGzWriter.GCodeGzWriter() }
|
Loading…
Add table
Add a link
Reference in a new issue