__init__.py 873 B

123456789101112131415161718192021222324252627282930
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Cura is released under the terms of the AGPLv3 or higher.
  3. from . import GCodeWriter
  4. from UM.i18n import i18nCatalog
  5. catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. return {
  8. "plugin": {
  9. "name": catalog.i18nc("@label", "GCode Writer"),
  10. "author": "Ultimaker",
  11. "version": "1.0",
  12. "description": catalog.i18nc("@info:whatsthis", "Writes GCode to a file."),
  13. "api": 3
  14. },
  15. "mesh_writer": {
  16. "output": [{
  17. "extension": "gcode",
  18. "description": catalog.i18nc("@item:inlistbox", "GCode File"),
  19. "mime_type": "text/x-gcode",
  20. "mode": GCodeWriter.GCodeWriter.OutputMode.TextMode
  21. }]
  22. }
  23. }
  24. def register(app):
  25. return { "mesh_writer": GCodeWriter.GCodeWriter() }