forked from crealitycloud/CrealityThumbnailPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
23 lines (20 loc) · 945 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
# Copyright (c) 2017 Ultimaker B.V.
# This example is released under the terms of the AGPLv3 or higher.
from . import CrealityOutputDevice
## Defines additional metadata for the plug-in.
#
# Some types of plug-ins require additional metadata, such as which file types
# they are able to read or the name of the tool they define. In the case of
# the "OutputDevice" type plug-in, there is no additional metadata though.
def getMetaData():
return {}
## Lets Uranium know that this plug-in exists.
#
# This is called when starting the application to find out which plug-ins
# exist and what their types are. We need to return a dictionary mapping from
# strings representing plug-in types (in this case "extension") to objects
# that inherit from PluginObject.
#
# \param app The application that the plug-in needs to register with.
def register(app):
return {"output_device": CrealityOutputDevice.CrealityThumbnail()}