__init__.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright (c) 2023 UltiMaker
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from UM.i18n import i18nCatalog
  4. from . import MakerbotWriter
  5. catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. file_extension = "makerbot"
  8. return {
  9. "mesh_writer":
  10. {
  11. "output": [
  12. {
  13. "extension": file_extension,
  14. "description": catalog.i18nc("@item:inlistbox", "Makerbot Printfile"),
  15. "mime_type": "application/x-makerbot",
  16. "mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
  17. },
  18. {
  19. "extension": file_extension,
  20. "description": catalog.i18nc("@item:inlistbox", "Makerbot Sketch Printfile"),
  21. "mime_type": "application/x-makerbot-sketch",
  22. "mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
  23. }
  24. ]
  25. },
  26. }
  27. def register(app):
  28. return {
  29. "mesh_writer": MakerbotWriter.MakerbotWriter(),
  30. }