mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 12:19:37 +08:00
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
# Copyright (c) 2023 UltiMaker
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from UM.i18n import i18nCatalog
|
|
|
|
from . import MakerbotWriter
|
|
|
|
catalog = i18nCatalog("cura")
|
|
|
|
|
|
def getMetaData():
|
|
file_extension = "makerbot"
|
|
return {
|
|
"mesh_writer":
|
|
{
|
|
"output": [
|
|
{
|
|
"extension": file_extension,
|
|
"description": catalog.i18nc("@item:inlistbox", "Makerbot Printfile"),
|
|
"mime_type": "application/x-makerbot",
|
|
"mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
|
|
},
|
|
{
|
|
"extension": file_extension,
|
|
"description": catalog.i18nc("@item:inlistbox", "Makerbot Sketch Printfile"),
|
|
"mime_type": "application/x-makerbot-sketch",
|
|
"mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
|
|
},
|
|
{
|
|
"extension": file_extension,
|
|
"description": catalog.i18nc("@item:inlistbox", "Makerbot Replicator+ Printfile"),
|
|
"mime_type": "application/x-makerbot-replicator_plus",
|
|
"mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
|
|
}
|
|
]
|
|
},
|
|
}
|
|
|
|
|
|
def register(app):
|
|
return {
|
|
"mesh_writer": MakerbotWriter.MakerbotWriter(),
|
|
}
|