mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Add basic UFP writer plug-in
This already implements most of it. Just the thumbnail must still be gotten and put inside the container. Contributes to issue CURA-4872.
This commit is contained in:
parent
6cd64e1ce8
commit
600e2abce1
3 changed files with 54 additions and 0 deletions
25
plugins/UFPWriter/__init__.py
Normal file
25
plugins/UFPWriter/__init__.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
#Copyright (c) 2018 Ultimaker B.V.
|
||||
#Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from . import UFPWriter
|
||||
from UM.i18n import i18nCatalog #To translate the file format description.
|
||||
from UM.Mesh.MeshWriter import MeshWriter #For the binary mode flag.
|
||||
|
||||
i18n_catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"mesh_writer": {
|
||||
"output": [
|
||||
{
|
||||
"mime_type": "application/x-ufp",
|
||||
"mode": MeshWriter.OutputMode.BinaryMode,
|
||||
"extension": "ufp",
|
||||
"description": i18n_catalog.i18nc("@item:inlistbox", "Ultimaker Format Package")
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
def register(app):
|
||||
return { "mesh_writer": UFPWriter.UFPWriter() }
|
Loading…
Add table
Add a link
Reference in a new issue