mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Add the beginnings of a GCode writer plugin
This commit is contained in:
commit
207f1a8999
2 changed files with 29 additions and 0 deletions
5
GCodeWriter.py
Normal file
5
GCodeWriter.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
from UM.Mesh.MeshWriter import MeshWriter
|
||||||
|
|
||||||
|
class GCodeWriter(MeshWriter):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
24
__init__.py
Normal file
24
__init__.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
from . import GCodeWriter
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
|
catalog = i18nCatalog('plugins')
|
||||||
|
|
||||||
|
def getMetaData():
|
||||||
|
return {
|
||||||
|
'type': 'mesh_writer',
|
||||||
|
'plugin': {
|
||||||
|
'name': 'GCode Writer',
|
||||||
|
'author': 'Arjen Hiemstra',
|
||||||
|
'version': '1.0',
|
||||||
|
'description': catalog.i18nc('GCode Writer Plugin Description', 'Writes GCode to a file')
|
||||||
|
},
|
||||||
|
|
||||||
|
'mesh_writer': {
|
||||||
|
'extension': 'gcode',
|
||||||
|
'description': catalog.i18nc('GCode Writer File Description', 'GCode File')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def register(app):
|
||||||
|
return GCodeWriter.GCodeWriter()
|
Loading…
Add table
Add a link
Reference in a new issue