-
Notifications
You must be signed in to change notification settings - Fork 8
/
__init__.py
32 lines (25 loc) · 980 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from UM.FileHandler.FileWriter import FileWriter
from .settings_plugin.SnapmakerSettingsPlugin import SnapmakerSettingsPlugin
from .gcode_writer.SnapmakerGCodeWriter import SnapmakerGCodeWriter
from .network_plugin.SnapmakerOutputDevicePlugin import SnapmakerOutputDevicePlugin
def getMetaData():
return {
"mesh_writer": {
"output": [{
"extension": "gcode",
"description": "Snapmaker Flavor G-code File",
"mime_type": "text/x-snapmaker-gcode",
"mode": FileWriter.OutputMode.TextMode,
}]
}
}
def register(app):
"""Register plugins."""
return {
# Extends Snapmaker related settings
"extension": SnapmakerSettingsPlugin(),
# Writer to write Snapmaker J1 specific G-code
"mesh_writer": SnapmakerGCodeWriter(),
# Treat networked printers as output devices
"output_device": SnapmakerOutputDevicePlugin(),
}